LogManager
- Last UpdatedMay 27, 2024
- 2 minute read
Use the LogManager node to read and write logs.
-
LogManager node cannot be instantiated.
-
There is an unique predefined LogManager node called logManager to interact with.
Platform support
This element is fully supported on XR-Windows, XR-Portable Windows, XR-Portable iOS, XR-Portable Android, and XR-P WASM platforms.
|
XR-WIN |
XR-P-WIN |
XR-P-IOS |
XR-P-AND |
XR-P-WASM |
|---|---|---|---|---|
|
Full support |
Full support |
Full support |
Full support |
Full support |
|
|
|
|
|
|
LogManager fields
These are the fields for LogManager node. Only the node-specific fields are indicated, not fields obtained by inheritance.
Field inheritance: NodeBase > LogManager
|
Fields |
Type |
Use |
Default |
Description |
|---|---|---|---|---|
|
level |
senum |
Optional |
INFO |
The lowest tracing level of the log. Values are INFO, DEBUG, WARN, ERROR, FATAL. If set to INFO, tracks everything. Otherwise, the tracking is restricted to the set level and above levels. |
|
logsJson |
sjson |
Optional |
Not set |
All the log entries received in the last frame, according to selected tracing level. Example [{"level":"DEBUG","message":"flushing dirty nodes","exception":null,"dateTime":"2022-10-03T16:55:21.2475055+05:30"}, {"level":"DEBUG","message":"flushing dirty nodes finished","exception":null,"dateTime":"2022-10-03T16:55:21.252672+05:30"}] |
|
addLogMessage |
sevent |
Optional |
Used for adding log entries. Example {"level":"INFO","message":"Rfc Loaded successfully","exception":null} |