Handler

No summary available

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

Exported

Handler

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()1.5.0
The log handler is the interface between the log entries and the log listeners.

Structural methods

getLogLevel()1.5.0
Returns
  • {integer}
get loglevel
setAll()1.5.0
Returns
  • {Handler}
Set log level to All
setDebug()1.5.0
Returns
  • {Handler}
Set log level to Debug
setError()1.5.0
Returns
  • {Handler}
Set log level to Error
setFatal()1.5.0
Returns
  • {Handler}
Set log level to Fatal
setInfo()1.5.0
Returns
  • {Handler}
Set log level to Info
setLogLevel(loglevel)1.5.0
Parameters
  • loglevel {number}: loglevel
Returns
  • {Handler}
set loglevel
setOff()1.5.0
Returns
  • {Handler}
Set log level to Off
setTrace()1.5.0
Returns
  • {Handler}
Set log level to Trace
setWarn()1.5.0
Returns
  • {undefined}
Set log level to Warn

Other methods

log(entry)
Parameters
  • entry {logentry}: entry
Returns
  • {boolean}
This is the central log function. this method must be overwritten by derived handlers with their own logic. 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.