Langfuse JS/TS SDKs
    Preparing search index...

    Function createLogger

    • Creates a new Logger instance with the specified configuration. This is independent of the global singleton logger.

      Parameters

      • Optionalconfig: LoggerConfig

        Optional configuration for the logger

      Returns Logger

      A new Logger instance

      const customLogger = createLogger({ level: LogLevel.DEBUG, prefix: 'Custom' });
      customLogger.debug('This is a debug message');