ConsoleHandler

Monster.Logging.Handler. ConsoleHandler

You can create an object of the class simply by using the namespace new Monster.Logging.Handler.ConsoleHandler().

<script type="module">
import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
console.log(new Monster.Logging.Handler.ConsoleHandler())
</script>

Alternatively, you can also integrate this class individually.

<script type="module">
import {ConsoleHandler} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/logging/handler/console.js';
console.log(new ConsoleHandler())
</script>

Constructor

# new ConsoleHandler()

Since:
  • 1.5.0

Methods

# log(entry) → {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;

Parameters:
Name Type Description
entry LogEntry
Returns:
Type
boolean