@luolapeikko/logger-suite
    Preparing search index...
    • Creates a logger factory that can be configured with prefixes, log levels, and key-based logging.

      Parameters

      Returns LoggerFactoryChain

      const logger = createLogger(console)
      .withKeys({
      constructor: "info",
      method: "debug",
      auth_error: "warn",
      })
      .withPrefix("MyApp:")
      .toLogger();
      logger.key("constructor", "This is an info message");
      logger.info('This is an info message');