MCPcopy Create free account
hub / github.com/screego/server / Init

Function Init

logger/logger.go:12–15  ·  view source on GitHub ↗

Init initializes the logger.

(lvl zerolog.Level)

Source from the content-addressed store, hash-verified

10
11// Init initializes the logger.
12func Init(lvl zerolog.Level) {
13 log.Logger = log.Output(zerolog.ConsoleWriter{Out: os.Stdout, TimeFormat: time.RFC3339}).Level(lvl)
14 log.Debug().Msg("Logger initialized")
15}

Callers 2

hash.goFile · 0.92
serveCmdFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected