The WebRTS client uses the Log Engine fromDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/CeeblueTV/wrts-client/llms.txt
Use this file to discover all available pages before exploring further.
@ceeblue/web-utils for all internal diagnostics. The library re-exports the entire web-utils namespace as utils, so you can reach log and LogLevel without installing a separate package.
Log Levels
There are four log levels, ordered from least to most verbose:LogLevel.ERROR
Unrecoverable errors that stop the current operation. Enabled by default.
LogLevel.WARN
Errors or unexpected states that do not interrupt the current operation.
LogLevel.INFO
Informational messages at a frequency acceptable in production environments.
LogLevel.DEBUG
High-frequency messages intended for development-time troubleshooting only.
Default Behaviour
By default, onlyLogLevel.ERROR is enabled. This is set in the library entry point (index.ts) at load time:
Setting the Log Level
LogLevel.INFO includes all messages at INFO, WARN, and ERROR priority — each level is cumulative downward.
Disabling or Enabling All Logging
Production Monitoring Example
LogLevel.INFO is a good choice for production. It surfaces connection events, track changes, buffer transitions, and live-edge seeks without flooding the console with per-frame debug data.
Advanced Log Engine Features
Beyond basic level filtering, the Log Engine from@ceeblue/web-utils supports:
- Subscription — attach a listener to receive log entries as structured objects
- Interception — intercept and transform log calls before they are written
- Redirection — send log output to a custom sink (e.g., a remote logging service)
- Redefinition — replace the default console writer entirely
ILog interface documentation for details.