BrowserAdapter class implementing EnvironmentAdapter interface.

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.

  • Gets the style for the provided logging level.

    Parameters

    • level: keyof LogLevel

      The logging level.

    Returns string

    The style string with appropriate color.