OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
ScriptLogSink Class Reference

#include <ScriptLogSink.h>

Inheritance diagram for ScriptLogSink:
LogSink

Public Member Functions

 ScriptLogSink (sol::state_view solState)
 
virtual void write (const LogCategory &category, LogLevel level, std::string_view message) override
 
- Public Member Functions inherited from LogSink
virtual ~LogSink ()=default
 
virtual void write (const LogCategory &category, LogLevel level, std::string_view message)=0
 

Private Attributes

sol::state_view _solState
 

Additional Inherited Members

- Static Public Member Functions inherited from LogSink
static std::unique_ptr< LogSinkcreateDefaultSink ()
 

Constructor & Destructor Documentation

◆ ScriptLogSink()

ScriptLogSink::ScriptLogSink ( sol::state_view  solState)
explicit

Member Function Documentation

◆ write()

void ScriptLogSink::write ( const LogCategory category,
LogLevel  level,
std::string_view  message 
)
overridevirtual

Writes out the log message.

Calls into write from the Logger instance are guaranteed to be serialized with a mutex, so you don't need to do any locking in your implementation.

Parameters
categoryLog category.
levelLog level.
messageLog message.

Implements LogSink.

Member Data Documentation

◆ _solState

sol::state_view ScriptLogSink::_solState
private

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