The debug logger.
A sequence of any JavaScript values.
The error logger.
A sequence of any JavaScript values.
The info logger.
A sequence of any JavaScript values.
The warning logger.
A sequence of any JavaScript values.
Generated using TypeDoc
The LaunchDarkly client logger interface.
The LDOptions.logger property accepts any object that conforms to this interface. The SDK only uses four logging levels:
error
,warn
,info
, anddebug
. It will call the corresponding method of theLDLogger
either with a single string argument, or with a format string and variable arguments in the format used by Node'sutil.format()
.The Winston logging package provides a logger that conforms to this interface, so if you have created a logger with Winston, you can simply put it into the LDOptions.logger property.
If you do not provide a logger object, the SDK uses the basicLogger implementation with a minimum level of
info
.