Interface FormatOptions

interface FormatOptions {
    colorize: "level" | "message";
    style: "ansi" | "css";
}

Properties

Properties

colorize: "level" | "message"

How to colorize the message:

  • level: Colorize the level.
  • message: Colorize the message. For EMERG and ALERT, the level is also included.
style: "ansi" | "css"

Whether to use ANSI escape codes (e.g. for Xterm) or CSS (for browsers) to colorize the log