Used to retrieve a named logger instance.

Loggers can be triggered by hash-parameters. To control the log level of all loggers (also known as root logger), you may use the hash parameter ckdebug and for more verbose output ckdebug=verbose. In addition to that, you can control the output of any logger using loggerName=level.

Example

private readonly logger: Logger =
LoggerProvider.getLogger(SymbolOnPasteMapper.pluginName);

Methods

Methods

  • Retrieve logger for the given name.

    Parameters

    • name: undefined | string

      some identifying name for the logger; used to toggle logging behavior

    • Rest ...context: unknown[]

      additional context, which will prefix the logger name in output (dot separated)

    Returns Logger