DEBUG
, INFO
, WARNING
, ERROR
, and NONE
.
This allows simple and powerful filtering of log messages so that you can, for example, print
debug messages to the local console and send error messages to an external aggregator.
KOTLIN
Parameters
KOTLIN
PrimerLog
defines various log types for the logging system.
Implementing your own custom logger
To implement a logger, create a class that implementsPrimerLogger
, like so:
KOTLIN
logger
property:
KOTLIN
logLevel
property like
so:
KOTLIN
PrimerLogLevel.NONE
.
Default SDK logger
Note that the default behaviour of the default logger is not to send any logs at all. You can easily assignDEBUG
or any other log level to the default logger by simply calling:
KOTLIN