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.

logging.inc 1.2KB

1234567891011121314151617181920212223242526272829303132333435
  1. # Logging configuration
  2. # Please don't modify this file as your changes might be overwritten with
  3. # the next update.
  4. #
  5. # You can modify 'local.d/logging.inc' to add and merge
  6. # parameters defined inside this section
  7. #
  8. # You can modify 'override.d/logging.inc' to strictly override all
  9. # parameters defined inside this section
  10. #
  11. # See https://rspamd.com/doc/faq.html#what-are-the-locald-and-overrided-directories
  12. # for details
  13. #
  14. # Relevant documentation: https://rspamd.com/doc/configuration/logging.html
  15. level = "info";
  16. log_format =<<EOD
  17. id: <$mid>,$if_qid{ qid: <$>,}$if_ip{ ip: $,}$if_user{ user: $,}$if_smtp_from{ from: <$>,}
  18. (default: $is_spam ($action): [$scores] [$symbols_scores_params]),
  19. len: $len, time: $time_real, dns req: $dns_req,
  20. digest: <$digest>$if_smtp_rcpts{, rcpts: <$>}$if_mime_rcpts{, mime_rcpts: <$>}$if_filename{, file: $}$if_forced_action{, forced: $}$if_settings_id{, settings_id: $}
  21. EOD
  22. # Show statistics for regular expressions
  23. log_re_cache = true;
  24. # Can be used for console logging
  25. color = false;
  26. # Log with microseconds resolution
  27. log_usec = false;
  28. # Enable debug for specific modules (e.g. `debug_modules = ["dkim", "re_cache"];`)
  29. debug_modules = []