LogColor constructor

LogColor({
  1. ConsoleColor? trace,
  2. ConsoleColor? info,
  3. ConsoleColor? debug,
  4. ConsoleColor? warn,
  5. ConsoleColor? error,
  6. 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);