Struct LogHandler
- Namespace
- Maplibre.NativeFfi
- Assembly
- Maplibre.NativeFfi.dll
A log callback, for MaplibreNative.SetLogCallback().
public readonly record struct LogHandler : IEquatable<LogHandler>
- Implements
- Inherited Members
Remarks
Runs on the thread that logged the message, or on a background thread
for the severities that MaplibreNative.SetLogAsyncSeverityMask()
selects. The callback can't call the library.
See mln_log_handler in the C API reference.
Constructors
LogHandler(LogCallback, LogSeverityFlag)
[SetsRequiredMembers]
public LogHandler(LogCallback Callback, LogSeverityFlag PlatformSeverities)
Parameters
CallbackLogCallbackPlatformSeveritiesLogSeverityFlag
Properties
Callback
public required LogCallback Callback { get; init; }
Property Value
PlatformSeverities
The severities that also go to the platform's log, as they do without a callback. 0 sends none. A message of these severities goes to the platform's log even when the handler's queue can't accept it.
public LogSeverityFlag PlatformSeverities { get; init; }