File: defaultlog.go

package info (click to toggle)
golang-github-azure-azure-pipeline-go 0.2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 152 kB
  • sloc: makefile: 2
file content (14 lines) | stat: -rw-r--r-- 320 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package pipeline


// ForceLog should rarely be used. It forceable logs an entry to the
// Windows Event Log (on Windows) or to the SysLog (on Linux)
func ForceLog(level LogLevel, msg string) {
	if !enableForceLog {
		return
	}
	if sanitizer != nil {
		msg = sanitizer.SanitizeLogMessage(msg)
	}
	forceLog(level, msg)
}