Background handler
()
| 237 | |
| 238 | // Background handler |
| 239 | func loggerHandler() { |
| 240 | for { |
| 241 | output := <-loggerChannel |
| 242 | fmt.Println(output) |
| 243 | runtime.Gosched() |
| 244 | } |
| 245 | } |
| 246 | |
| 247 | // Default timewarn period used for suppressing LogInfo entirely |
| 248 | const LogPeriodSuppressSecs = 2 |