Class AbstractLoggerAbstract

Hierarchy (view full)

Implemented by

Constructors

Properties

logLevel: LogLevel
logTag: string

Methods

  • Debug logs are for information that is useful for debugging issues.

    Parameters

    • Rest...args: unknown[]

    Returns void

  • Errors are for information that is critical and should be addressed immediately.

    Parameters

    • Rest...args: unknown[]

    Returns void

  • Fatal logs are for information that is critical and should be addressed immediately.

    Parameters

    • Rest...args: unknown[]

    Returns void

  • Formats a message for logging, including the log level and log tag.

    Parameters

    • level: LogLevel

      The log level to use

    • Rest...args: unknown[]

      The arguments to log

    Returns string

    The formatted message

  • General/generic information to log, typically for info that you want to have always available, but not necessarily important to the user. This is the default log level.

    Parameters

    • Rest...args: unknown[]

    Returns void

  • Checks whether a log level should be logged based on the current log level.

    Parameters

    Returns boolean

    Whether the log level should be logged

  • Trace logs are for information that is useful for tracing the flow of a program.

    Parameters

    • Rest...args: unknown[]

    Returns void

  • Warnings are for information that is important to the user, but not necessarily critical.

    Parameters

    • Rest...args: unknown[]

    Returns void