MCPcopy
hub / github.com/safing/portmaster / Tracef

Function Tracef

base/log/input.go:94–98  ·  view source on GitHub ↗

Tracef is used to log tiny steps. Log traces to context if you can!

(format string, things ...interface{})

Source from the content-addressed store, hash-verified

92
93// Tracef is used to log tiny steps. Log traces to context if you can!
94func Tracef(format string, things ...interface{}) {
95 if fastcheck(TraceLevel) {
96 log(TraceLevel, fmt.Sprintf(format, things...), nil)
97 }
98}
99
100// Debug is used to log minor errors or unexpected events. These occurrences are usually not worth mentioning in itself, but they might hint at a bigger problem.
101func Debug(msg string) {

Callers 15

moveFileMethod · 0.92
cleanConnectionsFunction · 0.92
logCleanerFunction · 0.92
loadResolversFunction · 0.92
StartMethod · 0.92
startAPIAuthFunction · 0.92
statLoggerFunction · 0.92
handleErrorMethod · 0.92
LoadPacketDataMethod · 0.92
ServeHTTPMethod · 0.92
ServeFileFromArchiveFunction · 0.92
CleanProcessStorageFunction · 0.92

Calls 2

fastcheckFunction · 0.85
logFunction · 0.85

Tested by 1

TestLoggingFunction · 0.68