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 DataDog service.
DataDog is a popular monitoring SaaS service. It collects logs, metrics, events from infrastructure and applications and analyze them in a single place.
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 DataDogLogger(); logger.configure(ConfigParams.fromTuples( "credential.access_key", "827349874395872349875493" )); logger.open("123", (err) => { ... }); logger.error("123", ex, "Error occured: %s", ex.message); logger.debug("123", "Everything is OK.");