Logger

No summary available

Import
the javascript logo
import { Logger } from "@schukai/monster/source/logging/logger.mjs";
Source
the git logo
Package
the npm logo
Since
1.5.0

Exported

Logger, ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF

Derived from

Base

Options

The Options listed in this section are defined directly within the class. This class is derived from several parent classes. Therefore, it inherits Options from these parent classes. If you cannot find a specific Options in this list, we recommend consulting the documentation of the Base.

Option
Type
Default
Description
-/-

Properties

The Properties listed in this section are defined directly within the class. This class is derived from several parent classes. Therefore, it inherits Properties from these parent classes. If you cannot find a specific Properties in this list, we recommend consulting the documentation of the Base.

Methods

The methods listed in this section are defined directly within the class. This class is derived from several parent classes. Therefore, it inherits methods from these parent classes. If you cannot find a specific method in this list, we recommend consulting the documentation of the Base.

Constructor

constructor()

Behavioral methods

addHandler(handler)
Parameters
  • handler {handler}: handler
Returns
  • {Logger}
Throws
  • {Error} the handler must be an instance of Handler
removeHandler(handler)
Parameters
  • handler {handler}: handler
Returns
  • {Logger}
Throws
  • {Error} the handler must be an instance of Handler

Structural methods

getLabel(level)
Parameters
  • level {number}: level
Returns
  • {string}
Labels
getLevel(label)
Parameters
  • label {string}: label
Returns
  • {integer}
Level

Other methods

logDebug()1.5.0
Parameters
  • undefined {*}: arguments
Returns
  • {Logger}
log Debug message ALL > TRACE > DEBUG > INFO > WARN > ERROR > FATAL > OFF (ALL = 0xff;OFF = 0x00;
logError()1.5.0
Parameters
  • undefined {*}: arguments
Returns
  • {Logger}
log Error message ALL > TRACE > DEBUG > INFO > WARN > ERROR > FATAL > OFF (ALL = 0xff;OFF = 0x00;
logFatal()1.5.0
Parameters
  • undefined {*}: arguments
Returns
  • {Logger}
log Fatal message ALL > TRACE > DEBUG > INFO > WARN > ERROR > FATAL > OFF (ALL = 0xff;OFF = 0x00;
logInfo()1.5.0
Parameters
  • undefined {*}: arguments
Returns
  • {Logger}
log Info message ALL > TRACE > DEBUG > INFO > WARN > ERROR > FATAL > OFF (ALL = 0xff;OFF = 0x00;
logTrace()1.5.0
Parameters
  • undefined {*}: arguments
Returns
  • {Logger}
log Trace message ALL > TRACE > DEBUG > INFO > WARN > ERROR > FATAL > OFF (ALL = 0xff;OFF = 0x00;
logWarn()1.5.0
Parameters
  • undefined {*}: arguments
Returns
  • {Logger}
log Warn message ALL > TRACE > DEBUG > INFO > WARN > ERROR > FATAL > OFF (ALL = 0xff;OFF = 0x00;

Events

This component does not fire any public events. It may fire events that are inherited from its parent classes.

The current width of the area is too small to display the content correctly.