A golang package for logging to a file
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.

settings.go 266B

1234567891011121314151617181920212223
  1. package flog
  2. import (
  3. "io"
  4. "os"
  5. )
  6. // Log settings
  7. var (
  8. MinLevel = LevelInfo
  9. MinStackLevel = LevelError
  10. Format LogFormatType = TextFormatter{}
  11. Output io.Writer
  12. )
  13. func getOutput() io.Writer {
  14. if Output != nil {
  15. return Output
  16. }
  17. return os.Stdout
  18. }