docs
Loading...
Searching...
No Matches
DiagnosticsConfig

#include <Ultralight/platform/Config.h>

Overview

Diagnostics and logging options.

See also
Config::diagnostics

Public Attributes

bool developer_mode = false
 Whether or not the library runs in developer mode.
DiagnosticsLevel javascript = DiagnosticsLevel::Auto
 The diagnostics level for JavaScript APIs that leave their own level at DiagnosticsLevel::Auto.
DiagnosticsLevel dom = DiagnosticsLevel::Auto
 The diagnostics level for the DOM API and data bindings.
LogLevel min_log_level = LogLevel::Info
 The least severe level the library sends to the Logger (less severe messages are dropped).

Member Data Documentation

◆ developer_mode

bool developer_mode = false

Whether or not the library runs in developer mode.

Developer mode turns the DiagnosticsLevel::Auto levels below into DiagnosticsLevel::Warn, and lets the diagnostics environment variables (UL_JS_DIAGNOSTICS, UL_DOM_DIAGNOSTICS) override them. You should turn it on in your development builds and leave it off in the builds you ship (a release library ignores those variables when developer mode is off, so a shipped app's behavior can't be changed from its environment). Each variable takes off, warn, or strict.

◆ dom

The diagnostics level for the DOM API and data bindings.

◆ javascript

The diagnostics level for JavaScript APIs that leave their own level at DiagnosticsLevel::Auto.

◆ min_log_level

LogLevel min_log_level = LogLevel::Info

The least severe level the library sends to the Logger (less severe messages are dropped).

Diagnostics warnings are sent at LogLevel::Warning, so a minimum of LogLevel::Error or LogLevel::Fatal hides them.


The documentation for this struct was generated from the following file: