mirror of
https://github.com/zs-yg/kortapp-z.git
synced 2025-12-06 16:10:42 +08:00
添加内存锻炼器代码
This commit is contained in:
21
others/C/memory/include/log.h
Normal file
21
others/C/memory/include/log.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef LOG_H
|
||||
#define LOG_H
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stddef.h>
|
||||
|
||||
// 日志级别
|
||||
typedef enum {
|
||||
LOG_DEBUG,
|
||||
LOG_INFO,
|
||||
LOG_WARNING,
|
||||
LOG_ERROR
|
||||
} LogLevel;
|
||||
|
||||
// 初始化日志系统
|
||||
void init_logger();
|
||||
|
||||
// 记录日志(支持中文)
|
||||
void log_message(LogLevel level, const wchar_t* format, ...);
|
||||
|
||||
#endif // LOG_H
|
||||
Reference in New Issue
Block a user