debug
, info
, warning
, error
, and none
.
The default logger has a log level of .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.
DEBUG
compilation symbol is present - this avoids any PCI or PII being
logged in production reporting tools.PrimerLogger
, like so:
logger
property:
logLevel
property like so:
.none
.
OSLogger
(if available) or print
.
Note that the default logger has a log level of none
, so it won’t send any logs at all
unless you assign a different level.
You can easily assign .debug
or any other log level to the default logger by simply calling: