CommonLibSSE NG
Loading...
Searching...
No Matches
RE::BSScript::ErrorLogger Class Referenceabstract

#include <ErrorLogger.h>

Inheritance diagram for RE::BSScript::ErrorLogger:
RE::BSTEventSource< LogEvent > RE::SkyrimScript::Logger

Classes

struct  PerThreadErrorCounts
 

Public Types

enum class  Severity { kInfo , kWarning , kError , kFatal }
 
- Public Types inherited from RE::BSTEventSource< LogEvent >
using Sink = BSTEventSink< LogEvent >
 

Public Member Functions

virtual ~ErrorLogger ()
 
virtual void PostErrorImpl (const char *a_message, Severity a_severity)=0
 
virtual void ResetImpl ()
 
- Public Member Functions inherited from RE::BSTEventSource< LogEvent >
 BSTEventSource ()
 
void AddEventSink (Sink *a_eventSink)
 
void AddEventSink (BSTEventSink< SinkEvent > *a_sink)
 
void RemoveEventSink (Sink *a_eventSink)
 
void SendEvent (const LogEvent *a_event)
 
void operator() (const LogEvent *a_event)
 

Public Attributes

BSSpinLock threadErrorsLock
 
BSTHashMap< std::uint32_t, PerThreadErrorCountsthreadErrors
 
- Public Attributes inherited from RE::BSTEventSource< LogEvent >
BSTArray< Sink * > sinks
 
BSTArray< Sink * > pendingRegisters
 
BSTArray< Sink * > pendingUnregisters
 
BSSpinLock lock
 
bool notifying
 
std::uint8_t pad51
 
std::uint16_t pad52
 
std::uint32_t pad54
 

Static Public Attributes

static constexpr auto RTTI = RTTI_BSScript__ErrorLogger
 

Member Enumeration Documentation

◆ Severity

Enumerator
kInfo 
kWarning 
kError 
kFatal 

Constructor & Destructor Documentation

◆ ~ErrorLogger()

virtual RE::BSScript::ErrorLogger::~ErrorLogger ( )
virtual

Member Function Documentation

◆ PostErrorImpl()

virtual void RE::BSScript::ErrorLogger::PostErrorImpl ( const char *  a_message,
Severity  a_severity 
)
pure virtual

Implemented in RE::SkyrimScript::Logger.

◆ ResetImpl()

virtual void RE::BSScript::ErrorLogger::ResetImpl ( )
virtual

Member Data Documentation

◆ RTTI

constexpr auto RE::BSScript::ErrorLogger::RTTI = RTTI_BSScript__ErrorLogger
inlinestaticconstexpr

◆ threadErrors

BSTHashMap<std::uint32_t, PerThreadErrorCounts> RE::BSScript::ErrorLogger::threadErrors

◆ threadErrorsLock

BSSpinLock RE::BSScript::ErrorLogger::threadErrorsLock
mutable

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