蛋蛋星球 后台端
 
 
 
 

21 rader
492 B

  1. package cfg
  2. import "applet/app/utils/logx"
  3. func InitLog() {
  4. logx.InitDefaultLogger(&logx.LogConfig{
  5. AppName: Log.AppName,
  6. Level: Log.Level,
  7. StacktraceLevel: "error",
  8. IsStdOut: Log.IsStdOut,
  9. TimeFormat: Log.TimeFormat,
  10. Encoding: Log.Encoding,
  11. IsFileOut: Log.IsFileOut,
  12. FileDir: Log.FileDir,
  13. FileName: Log.FileName,
  14. FileMaxSize: Log.FileMaxSize,
  15. FileMaxAge: Log.FileMaxAge,
  16. Skip: 2,
  17. })
  18. }