Class: CountlyLogger
Countly Logger Adapter
Implements ILogger interface by wrapping the existing Logger singleton. This adapter bridges the new hexagonal architecture with the existing Countly/Rollbar logging implementation.
Example
ILogger
Implements
Constructors
Constructor
CountlyLogger
Returns
CountlyLogger
Methods
logDebug()
unknown
Logs debug information (only in debug mode)
Parameters
args
…unknown[]
Returns
void
Implementation of
logError()
void
Logs an error to Rollbar
Parameters
error
unknown
context?
Record<string, string>
Returns
void
Implementation of
logEvent()
ILogger
Logs an analytics event to Countly
Parameters
eventName
string
segmentation?
Record<string, string>
Returns
void
Implementation of
logWarning()
logDebug
Logs a warning
Parameters
error
unknown
context?
Record<string, string>
Returns
void
Implementation of
setToken()
unknown
Sets the API token for enriching event segmentation
Parameters
token
string
Returns
void
Implementation of
Last updated on