log.file.conf.example 906 B

12345678910111213141516171819202122232425262728293031
  1. ## Log to file
  2. log.file {
  3. ## Enable file log handler
  4. enable = true
  5. ## Log level
  6. ## Type: debug | info | notice | warning | error | critical | alert | emergency
  7. level = warning
  8. ## Log formatter, text for free text, and json for more structured logging
  9. ## Type: text | json
  10. formatter = text
  11. ## Time offset for formatting the timestamp
  12. ## Type:
  13. ## - system :: local system time
  14. ## - utc :: UTC time
  15. ## - +-[hh]:[mm]: user specified time offset, such as "-02:00" or "+00:00" Defaults to: system
  16. time_offset = system
  17. ## Maximum number of log files
  18. ## Type: Range from 1 to 128
  19. rotation_count = 10
  20. ## This parameter controls log file rotation
  21. ## Type:
  22. ## - infinity :: the log file will grow indefinitely
  23. ## - ByteSize :: the log file will be rotated once it reaches this value in bytes
  24. rotation_size = 50MB
  25. }