Setu-TS
    Preparing search index...

    Function LoggerPlugin

    • Creates the LoggerPlugin.

      The plugin depends on the runtime plugin (CAPABILITIES.RUNTIME) and registers its ILogger under CAPABILITIES.LOGGER at PLUGIN_PRIORITY.HIGH so logging is available before most other plugins register.

      Parameters

      Returns IPlugin

      The plugin instance

      import { LoggerPlugin } from '@setu-ts/logger-plugin';

      app.register(LoggerPlugin({
      level: 'debug',
      transport: 'console',
      pretty: true,
      redact: ['password', 'token'],
      requestLogging: true,
      slowRequestThreshold: 1000,
      }));

      LoggerConfigurationError when logger and transport do not agree

      0.1.0