From f0daefd2a472f0c8d3d12a4b0d45594195a6c74d Mon Sep 17 00:00:00 2001 From: Dave Wood Date: Wed, 27 Mar 2019 02:35:42 -0400 Subject: [PATCH] Add new log levels to the sample ANSIColorLogFormatter in the Readme --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 24a58d67..ef38e96a 100644 --- a/README.md +++ b/README.md @@ -410,9 +410,12 @@ if let fileDestination: FileDestination = log.destination(withIdentifier: XCGLog ansiColorLogFormatter.colorize(level: .verbose, with: .colorIndex(number: 244), options: [.faint]) ansiColorLogFormatter.colorize(level: .debug, with: .black) ansiColorLogFormatter.colorize(level: .info, with: .blue, options: [.underline]) + ansiColorLogFormatter.colorize(level: .notice, with: .green, options: [.italic]) ansiColorLogFormatter.colorize(level: .warning, with: .red, options: [.faint]) ansiColorLogFormatter.colorize(level: .error, with: .red, options: [.bold]) ansiColorLogFormatter.colorize(level: .severe, with: .white, on: .red) + ansiColorLogFormatter.colorize(level: .alert, with: .white, on: .red, options: [.bold]) + ansiColorLogFormatter.colorize(level: .emergency, with: .white, on: .red, options: [.bold, .blink]) fileDestination.formatters = [ansiColorLogFormatter] } ```