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