Documentation / @super-line/core / enableSuperLineLogging
Function: enableSuperLineLogging()
enableSuperLineLogging(
opts?):void
Defined in: packages/core/src/log.ts:60
Turn on super-line's internal logging to a pretty, secret-redacting console — the one-line debug switch.
ts
import { enableSuperLineLogging } from '@super-line/core'
enableSuperLineLogging({ level: 'debug' })This calls LogTape's configureSync(), which owns a single process-global configuration. So use this or your own configure(), never both — calling both has the later one replace the earlier. An app that manages LogTape itself should instead add a ['super-line'] logger to its own configure() (and wrap its sink in redactByField — see docs/how-to/debugging-with-logs.md), rather than call this.
reset: true makes repeated calls idempotent (last call wins) instead of throwing ConfigError.
Parameters
opts?
EnableLoggingOptions = {}
Returns
void