defaultlog.go 320 B

1234567891011121314
  1. package pipeline
  2. // ForceLog should rarely be used. It forceable logs an entry to the
  3. // Windows Event Log (on Windows) or to the SysLog (on Linux)
  4. func ForceLog(level LogLevel, msg string) {
  5. if !enableForceLog {
  6. return
  7. }
  8. if sanitizer != nil {
  9. msg = sanitizer.SanitizeLogMessage(msg)
  10. }
  11. forceLog(level, msg)
  12. }