@absolunet/ioc2.1.0

View on GitHub

Driver

Abstract driver that defines the basic interface for a logger driver.

Extends

Members

(static) dependencies :Array.<string>

Source:
Class dependencies: ['log.level'].

config :object

Source:
Driver configuration.

engine :*

Source:
Inherited From:
Current engine accessor.

Methods

(async, abstract) log(level, message, contextopt)

Source:
Log message with context for a given level.
Parameters:
Name Type Attributes Description
level number The log level.
message string The message.
context * <optional>
The context.
Returns:
The async process promise.
Type
Promise

setConfig(config)

Source:
Set configuration for the channel.
Parameters:
Name Type Description
config object The driver configuration.
Returns:
The current driver instance.
Type
log.services.Logger.drivers.Driver

setEngine(engine)

Source:
Inherited From:
Set current engine.
Parameters:
Name Type Description
engine * The engine instance.
Returns:
The current instance.
Type
support.mixins.HasEngine