MCPcopy
hub / github.com/sirupsen/logrus / Exit

Method Exit

logger.go:342–348  ·  view source on GitHub ↗
(code int)

Source from the content-addressed store, hash-verified

340}
341
342func (logger *Logger) Exit(code int) {
343 runHandlers()
344 if logger.ExitFunc == nil {
345 logger.ExitFunc = os.Exit
346 }
347 logger.ExitFunc(code)
348}
349
350// SetNoLock disables the lock for situations where a file is opened with
351// appending mode, and safe for concurrent writes to the file (within 4k

Callers 9

FatalfMethod · 0.95
FatalMethod · 0.95
FatalFnMethod · 0.95
FatallnMethod · 0.95
FatalMethod · 0.80
FatalfMethod · 0.80
FatallnMethod · 0.80
ExitFunction · 0.80
mainFunction · 0.80

Calls 1

runHandlersFunction · 0.85

Tested by

no test coverage detected