init static method
初始化文件日志
Implementation
static Future<void> init() async {
await DKLog.initFileLog(
enable: true,
fileLogLevel: DKLogLevel.info, // 只记录 info 及以上级别
maxFileSize: 5 * 1024 * 1024, // 5MB
maxFileCount: 3, // 保留 3 个文件
);
}