Variable formatsConst

formats: {
    ansi_level(this: void, entry: Entry): string[];
    ansi_message(this: void, entry: Entry): string;
    css_level(this: void, entry: Entry): string[];
    css_message(this: void, entry: Entry): string[];
    default(this: void, entry: Entry): string[];
} = ...

Various format functions included to make using the logger easier. These are not the only formats you can use.

Type declaration

  • ansi_level:function
    • Format with a timestamp and the level, colorized with ANSI escape codes

      Parameters

      Returns string[]

  • ansi_message:function
    • Format with a timestamp and colorize the message with ANSI escape codes. For EMERG and ALERT, the levels are included

      Parameters

      Returns string

  • css_level:function
  • css_message:function
  • default:function