Skip to content

Commit f0daefd

Browse files
committed
Add new log levels to the sample ANSIColorLogFormatter in the Readme
1 parent bc17c5e commit f0daefd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,9 +410,12 @@ if let fileDestination: FileDestination = log.destination(withIdentifier: XCGLog
410410
ansiColorLogFormatter.colorize(level: .verbose, with: .colorIndex(number: 244), options: [.faint])
411411
ansiColorLogFormatter.colorize(level: .debug, with: .black)
412412
ansiColorLogFormatter.colorize(level: .info, with: .blue, options: [.underline])
413+
ansiColorLogFormatter.colorize(level: .notice, with: .green, options: [.italic])
413414
ansiColorLogFormatter.colorize(level: .warning, with: .red, options: [.faint])
414415
ansiColorLogFormatter.colorize(level: .error, with: .red, options: [.bold])
415416
ansiColorLogFormatter.colorize(level: .severe, with: .white, on: .red)
417+
ansiColorLogFormatter.colorize(level: .alert, with: .white, on: .red, options: [.bold])
418+
ansiColorLogFormatter.colorize(level: .emergency, with: .white, on: .red, options: [.bold, .blink])
416419
fileDestination.formatters = [ansiColorLogFormatter]
417420
}
418421
```

0 commit comments

Comments
 (0)