Skip to main content

Logging

import { ConsoleLevel, captureConsole, error } from '@rtorcato/js-common/logging'

Exports

NameSummary
ConsoleLevelOne of the four standard console methods used by captureConsole.
captureConsoleCaptures all console output and returns a function to restore it.
errorLogs an error message.
infoLogs an info message.
logWithTimestampLogs a message with a timestamp.
warnLogs a warning message.