NewNullLogger() creates a Logger that discards all log output
()
| 246 | |
| 247 | // NewNullLogger() creates a Logger that discards all log output |
| 248 | func NewNullLogger() LoggerI { |
| 249 | return NewLogger(LoggerConfig{ |
| 250 | Level: DebugLevel, |
| 251 | Out: io.Discard, |
| 252 | }) |
| 253 | } |
| 254 | |
| 255 | // colorStringWithFormat() returns a formatted string with color applied |
| 256 | func colorStringWithFormat(c int, format string, args ...any) string { |