docs
Docs
C++ API
C API
Search API
Ctrl K
2.0
2.0
latest
1.4
Ultralight C++ API
2.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
DiagnosticsLevel.h
Go to the documentation of this file.
1
///
2
/// Copyright (C) 2026 Ultralight, Inc. All rights reserved.
3
/// A license is required for commercial use. https://ultralig.ht
4
///
5
#pragma once
6
#include <cstdint>
7
8
namespace
ultralight
{
9
10
///
11
/// How much checking and warning the library does for mistakes made through one of its APIs.
12
///
13
/// Warnings go to the Logger at LogLevel::Warning, tagged with the API they came from (eg,
14
/// `[js]`, `[dom]`, `[data]`), and to the page's console when a page is involved.
15
///
16
/// @see DiagnosticsConfig
17
///
18
enum class
DiagnosticsLevel
: uint8_t {
19
///
20
/// No per-operation warnings (a mistake the library only finds once, like an invalid setup
21
/// call, still warns).
22
///
23
Off
= 0,
24
25
///
26
/// Development warnings about each mistake as it happens.
27
///
28
Warn
,
29
30
///
31
/// Everything Warn reports, plus stricter checks (eg, a lossy argument conversion in a
32
/// JavaScript binding becomes a TypeError, and every DOM call on an empty handle warns).
33
///
34
Strict
,
35
36
///
37
/// Warn when DiagnosticsConfig::developer_mode is on, Off when it's off.
38
///
39
Auto
,
40
};
41
42
}
// namespace ultralight
ultralight
Root namespace for every public Ultralight type, function, and enumeration.
ultralight::DiagnosticsLevel
DiagnosticsLevel
How much checking and warning the library does for mistakes made through one of its APIs.
Definition
DiagnosticsLevel.h:18
ultralight::DiagnosticsLevel::Strict
@ Strict
Everything Warn reports, plus stricter checks (eg, a lossy argument conversion in a JavaScript bindin...
Definition
DiagnosticsLevel.h:34
ultralight::DiagnosticsLevel::Warn
@ Warn
Development warnings about each mistake as it happens.
Definition
DiagnosticsLevel.h:28
ultralight::DiagnosticsLevel::Off
@ Off
No per-operation warnings (a mistake the library only finds once, like an invalid setup call,...
Definition
DiagnosticsLevel.h:23
ultralight::Dismiss::Auto
@ Auto
The library also hides it the way the OS closes a native menu.
Definition
Options.h:29
Ultralight
DiagnosticsLevel.h
Docs
C++ API
C API
Version
2.0
2.0
latest
1.4