MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / String

Method String

internal/logger/logger.go:28–39  ·  view source on GitHub ↗

String returns the string representation of the log level.

()

Source from the content-addressed store, hash-verified

26
27// String returns the string representation of the log level.
28func (l Level) String() string {
29 switch l {
30 case LevelDebug:
31 return "DEBUG"
32 case LevelInfo:
33 return "INFO"
34 case LevelError:
35 return "ERROR"
36 default:
37 return "UNKNOWN"
38 }
39}
40
41// Logger implements the interfaces.Logger interface with configurable output and levels.
42type Logger struct {

Callers 15

TestLevel_StringFunction · 0.45
TestLogger_LogLevelsFunction · 0.45
TestLogger_DebugLevelFunction · 0.45
TestLogger_ErrorLevelFunction · 0.45
TestLogger_FormatMessageFunction · 0.45
TestLogger_SetLevelFunction · 0.45
formatMessageMethod · 0.45
newStorageListCmdFunction · 0.45
newStorageContentListCmdFunction · 0.45
newStorageDownloadURLCmdFunction · 0.45

Calls

no outgoing calls

Tested by 11

TestLevel_StringFunction · 0.36
TestLogger_LogLevelsFunction · 0.36
TestLogger_DebugLevelFunction · 0.36
TestLogger_ErrorLevelFunction · 0.36
TestLogger_FormatMessageFunction · 0.36
TestLogger_SetLevelFunction · 0.36
captureStdoutFunction · 0.36
captureStderrFunction · 0.36