广告平台(站长下代理使用)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

init_log.go 492 B

3 months ago
1234567891011121314151617181920
  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. }