Skip to content

Function: createLogger() ​

ts
function createLogger(options?): Logger;

Builds the logger the client writes through.

Parameters ​

options? ​

LoggingOptions = {}

Level, prefix and sink. All optional.

Returns ​

Logger

A logger whose four methods are already level-filtered.

Released under the MIT licence.