Creates a new instance of the logger.
Closes component and frees used resources.
(optional) transaction id to trace execution through call chain.
callback function that receives error or null no errors occured.
Configures component by passing configuration parameters.
configuration parameters to be set.
Checks if the component is opened.
true if the component has been opened and false otherwise.
Opens the component.
(optional) transaction id to trace execution through call chain.
callback function that receives error or null no errors occured.
Saves log messages from the cache.
a list with log messages
callback function that receives error or null for success.
Sets references to dependent components.
references to locate the component dependencies.
Generated using TypeDoc
Logger that dumps execution logs to Fluentd service.
Fluentd is a popular logging service that is often used together with Kubernetes container orchestrator.
Authentication is not supported in this version.
Configuration parameters
References
*:context-info:*:*:1.0
(optional) ContextInfo to detect the context id and specify counters source*:discovery:*:*:1.0
(optional) IDiscovery services to resolve connectionExample
let logger = new FluentdLogger(); logger.configure(ConfigParams.fromTuples( "connection.protocol", "http", "connection.host", "localhost", "connection.port", 24224 )); logger.open("123", (err) => { ... }); logger.error("123", ex, "Error occured: %s", ex.message); logger.debug("123", "Everything is OK.");