LogColor constructor
LogColor({
- ConsoleColor? trace,
- ConsoleColor? info,
- ConsoleColor? debug,
- ConsoleColor? warn,
- ConsoleColor? error,
- ConsoleColor? fatal,
Returns the new instance of LogColor.
Implementation
LogColor({
ConsoleColor? trace,
ConsoleColor? info,
ConsoleColor? debug,
ConsoleColor? warn,
ConsoleColor? error,
ConsoleColor? fatal,
}) : _trace = AnsiColor.foreground(trace ?? ConsoleColor.grey),
_debug = AnsiColor.foreground(debug ?? ConsoleColor.paleGreen10),
_info = AnsiColor.foreground(info ?? ConsoleColor.cyan1),
_warn = AnsiColor.foreground(warn ?? ConsoleColor.orange1),
_error = AnsiColor.foreground(error ?? ConsoleColor.red),
_fatal = AnsiColor.foreground(fatal ?? ConsoleColor.paleVioletRed1);