MCPcopy Create free account
hub / github.com/MG-RAST/Shock / Handle

Method Handle

shock-server/logger/logger.go:129–134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

127}
128
129func (l *Logger) Handle() {
130 for {
131 m := <-l.queue
132 l.logs[m.log].Log(m.lvl, "", m.message)
133 }
134}
135
136func (l *Logger) Log(log string, lvl l4g.Level, message string) {
137 l.queue <- m{log: log, lvl: lvl, message: message}

Callers 2

mainFunction · 0.45
InitializeFunction · 0.45

Calls 1

LogMethod · 0.80

Tested by

no test coverage detected