MCPcopy Index your code
hub / github.com/coder/slog / Critical

Method Critical

slog.go:108–111  ·  view source on GitHub ↗

Critical logs the msg and fields at LevelCritical. It will then Sync().

(ctx context.Context, msg string, fields ...Field)

Source from the content-addressed store, hash-verified

106//
107// It will then Sync().
108func (l Logger) Critical(ctx context.Context, msg string, fields ...Field) {
109 l.log(ctx, LevelCritical, msg, fields)
110 l.Sync()
111}
112
113// Fatal logs the msg and fields at LevelFatal.
114//

Callers 2

TestLoggerFunction · 0.80
TestExitFunction · 0.80

Calls 2

logMethod · 0.95
SyncMethod · 0.95

Tested by 2

TestLoggerFunction · 0.64
TestExitFunction · 0.64