NodeAdapter is a class that implements the EnvironmentAdapter interface. It provides a format method to apply color formatting to text based on log level.

Implements

Constructors

Methods

Constructors

Methods

  • Format the given text with color based on log level.

    Parameters

    • text: string

      The text to format.

    • level: keyof LogLevel

      The level of the log, which determines the color.

    Returns string

    The formatted text with applied color.