MCPcopy
hub / github.com/tinyauthapp/tinyauth / NewSimpleLogger

Function NewSimpleLogger

internal/utils/tlog/log_wrapper.go:46–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44}
45
46func NewSimpleLogger() *Logger {
47 return NewLogger(config.LogConfig{
48 Level: "info",
49 Json: false,
50 Streams: config.LogStreams{
51 HTTP: config.LogStreamConfig{Enabled: true},
52 App: config.LogStreamConfig{Enabled: true},
53 Audit: config.LogStreamConfig{Enabled: false},
54 },
55 })
56}
57
58func NewTestLogger() *Logger {
59 return NewLogger(config.LogConfig{

Callers 6

TestNewSimpleLoggerFunction · 0.92
TestLoggerInitFunction · 0.92
healthcheckCmdFunction · 0.92
generateTotpCmdFunction · 0.92
createUserCmdFunction · 0.92
verifyUserCmdFunction · 0.92

Calls 1

NewLoggerFunction · 0.85

Tested by 2

TestNewSimpleLoggerFunction · 0.74
TestLoggerInitFunction · 0.74