golang 的 rabbitmq 消费项目
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

init_log.go 492 B

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. }