https://github.com/doobcontrol/xylogger
一个简单的日志库
https://github.com/doobcontrol/xylogger
Last synced: 9 months ago
JSON representation
一个简单的日志库
- Host: GitHub
- URL: https://github.com/doobcontrol/xylogger
- Owner: doobcontrol
- License: mit
- Created: 2023-02-11T20:28:36.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-12-05T19:54:19.000Z (over 2 years ago)
- Last Synced: 2023-12-05T20:40:30.372Z (over 2 years ago)
- Language: C#
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
使用示例代码:
IXYLogger xyLogger;
xyLogger = new XYFileLogger();
xyLogger.initLog(new Dictionary() {
{"logDir","log/"},
{"logFileName","log"}
});
log(LogTask.logType_info, " 程序启动", null)
initLog参数字典中,logDir值是日志的保存位置,logFileName是日志的文件名,实际生成的文件名为加上日期,为“logyymmdd.log”
实际使用请见示例项目