MCPcopy Create free account
hub / github.com/DNAProject/DNA / New

Function New

common/log/log.go:124–130  ·  view source on GitHub ↗
(out io.Writer, prefix string, flag, level int, file *os.File)

Source from the content-addressed store, hash-verified

122}
123
124func New(out io.Writer, prefix string, flag, level int, file *os.File) *Logger {
125 return &Logger{
126 level: level,
127 logger: log.New(out, prefix, flag),
128 logFile: file,
129 }
130}
131
132func (l *Logger) SetDebugLevel(level int) error {
133 if level > MaxLevelLog || level < 0 {

Callers 1

InitLogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected