Files
hjha-server/MrWu/Debug/LogConfig.cs
xiaoou e9616125ce feat: initial commit - HJHA game server full source
6 major server modules (PdkFriendServer/GlobalSever/ServerCore/GameModule/GameNetModule) +
game logic (GameFix/GameDAL/ServerData) +
network layer (NetWorkMessage) +
data layer (ObjectModel) +
utilities (MrWu/Core/Config/CloudAPI/dll) +
adapters (zyxAdapter/base)

.NET 8.0 C# solution, 16 projects, 958 source files
2026-07-07 12:02:15 +08:00

82 lines
2.0 KiB
C#

/********************************
*
* 作者:吴隆健
* 创建时间: 2019-06-09 10:45:09
*
********************************/
using System;
namespace MrWu.Debug {
/// <summary>
/// 日志配置
/// </summary>
public class LogConfig {
/// <summary>
/// 日志缓存数量
/// </summary>
public int logCacheCount = 1000;
/// <summary>
/// 信息缓存数量
/// </summary>
public int InfoCacheCount = 800;
/// <summary>
/// 警告缓存数量
/// </summary>
public int warningCacheCount = 500;
/// <summary>
/// 重要日志
/// </summary>
public int ImportantLogCacheCount = 300;
/// <summary>
/// 错误缓存数量
/// </summary>
public int errorCacheCount = 100;
/// <summary>
/// 致命错误
/// </summary>
public int FatalCacheCount = 1000;
///// <summary>
///// 日志路径
///// </summary>
//public string logpath { get; set; }
#if DEBUG
/// <summary>
/// 日志等级
/// </summary>
public DebugLevel logLevel = DebugLevel.Info | DebugLevel.Warning | DebugLevel.Error | DebugLevel.ImportantLog | DebugLevel.Fatal;
#else
/// <summary>
/// 日志等级
/// </summary>
public DebugLevel logLevel = DebugLevel.Error | DebugLevel.ImportantLog | DebugLevel.Fatal;
#endif
/// <summary>
/// 保存日志等级
/// </summary>
public DebugLevel saveLevel = DebugLevel.Info | DebugLevel.Warning | DebugLevel.Error | DebugLevel.ImportantLog | DebugLevel.Fatal;
/// <summary>
/// 构造器
/// </summary>
public LogConfig() {
}
/// <summary>
/// 保留天数
/// </summary>
public int remainDays { get; set; } = 30;
}
}