(from, to string)
| 84 | } |
| 85 | |
| 86 | func writeLogLevelChange(from, to string) { |
| 87 | if GlobalWriter == nil { |
| 88 | return |
| 89 | } |
| 90 | if GlobalWriter.isStdout { |
| 91 | fmt.Fprintf(GlobalWriter, "%s%s%s log level changed from %s%s%s to %s%s%s\n", |
| 92 | dimColor(), |
| 93 | time.Now().Format(timeFormat), |
| 94 | endDimColor(), |
| 95 | |
| 96 | blueColor(), |
| 97 | from, |
| 98 | endColor(), |
| 99 | |
| 100 | blueColor(), |
| 101 | to, |
| 102 | endColor()) |
| 103 | } else { |
| 104 | fmt.Fprintf(GlobalWriter, "%s log level changed from %s to %s\n", time.Now().Format(timeFormat), from, to) |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | func writerManager() { |
| 109 | defer shutdownWaitGroup.Done() |
no test coverage detected