@absolunet/ioc2.1.0

View on GitHub

StackDriver

Driver that logs into a suite of configured channels at once.

Extends

Members

(static) dependencies :Array.<string>

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

config :object

Source:
Inherited From:
Driver configuration.

engine :*

Source:
Inherited From:
Current engine accessor.

Methods

(async) log(level, message, contextopt)

Source:
Overrides:
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:
Inherited From:
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