docs
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
8namespace 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///
18enum 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 ///
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 ///
35
36 ///
37 /// Warn when DiagnosticsConfig::developer_mode is on, Off when it's off.
38 ///
40};
41
42} // namespace ultralight
Root namespace for every public Ultralight type, function, and enumeration.
DiagnosticsLevel
How much checking and warning the library does for mistakes made through one of its APIs.
Definition DiagnosticsLevel.h:18
@ Strict
Everything Warn reports, plus stricter checks (eg, a lossy argument conversion in a JavaScript bindin...
Definition DiagnosticsLevel.h:34
@ Warn
Development warnings about each mistake as it happens.
Definition DiagnosticsLevel.h:28
@ Off
No per-operation warnings (a mistake the library only finds once, like an invalid setup call,...
Definition DiagnosticsLevel.h:23
@ Auto
The library also hides it the way the OS closes a native menu.
Definition Options.h:29