docs
Loading...
Searching...
No Matches
Loggerabstract

#include <Ultralight/platform/Logger.h>

Overview

User-defined logging interface.

The library uses this to report failures, warnings, and status messages.

This is intended to be implemented by users and defined before creating the Renderer.

Each message starts with a tag in brackets for the part of the library it came from (eg, [net] Failed to load cacert.pem ...). The library doesn't send messages below DiagnosticsConfig::min_log_level.

Note
The library calls LogMessage() from any of its threads, and more than one can be inside it at the same time, so your implementation must serialize its writes.
See also
Platform::set_logger()

Public Member Functions

virtual ~Logger ()
virtual void LogMessage (LogLevel log_level, const String &message)=0
 Called when the library wants to display a log message.

Constructor & Destructor Documentation

◆ ~Logger()

virtual ~Logger ( )
virtual

Member Function Documentation

◆ LogMessage()

virtual void LogMessage ( LogLevel log_level,
const String & message )
pure virtual

Called when the library wants to display a log message.

Parameters
log_levelThe severity of the message.
messageThe message text.

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