Elaztek Developer Hub
Blamite Game Engine - Keystone  00305.01.23.21.0442.blamite
A library that enables the use of Qt in Blamite's editing tools.
BlamKeystone::Logger Namespace Reference

Namespace containing anything related to the Keystone logger. More...

Functions

KEYSTONE void LogEvent (std::string message)
 Logs an event to Keystone. More...
 
KEYSTONE void LogEvent (std::string message, BlamLogLevel log_level)
 Logs an event to Keystone. More...
 
KEYSTONE void LogEvent (BlamBasicLogMessage message)
 Logs an event to Keystone. More...
 
KEYSTONE void AddReceiver (BlamLogReceiver *receiver)
 Registers a new log receiver, which will be notified whenever a new message is logged. More...
 
KEYSTONE void RemoveReceiver (BlamLogReceiver *receiver)
 Unregisters a log receiver. More...
 

Detailed Description

Namespace containing anything related to the Keystone logger.

Function Documentation

◆ AddReceiver()

void BlamKeystone::Logger::AddReceiver ( BlamLogReceiver *  receiver)

Registers a new log receiver, which will be notified whenever a new message is logged.

Parameters
receiver- The new receiver to add.

◆ LogEvent() [1/3]

void BlamKeystone::Logger::LogEvent ( BlamBasicLogMessage  message)

Logs an event to Keystone.

The message will be printed to stdout if nothing is hooked into it. Otherwise, the message will be forwarded to any hooks that have hooked into the library.

Parameters
message- The message data to write to the log.

◆ LogEvent() [2/3]

void BlamKeystone::Logger::LogEvent ( std::string  message)

Logs an event to Keystone.

The message will be printed to stdout if nothing is hooked into it. Otherwise, the message will be forwarded to any hooks that have hooked into the library.

Parameters
message- The message to write to the log.

◆ LogEvent() [3/3]

void BlamKeystone::Logger::LogEvent ( std::string  message,
BlamLogLevel  log_level 
)

Logs an event to Keystone.

The message will be printed to stdout if nothing is hooked into it. Otherwise, the message will be forwarded to any hooks that have hooked into the library.

Parameters
message- The message to write to the log.
log_level- The severity of the log message. See #BlamLogLevel for details.

◆ RemoveReceiver()

void BlamKeystone::Logger::RemoveReceiver ( BlamLogReceiver *  receiver)

Unregisters a log receiver.

The receiver will no longer be notified when a message is logged.

Parameters
receiver- The receiver to remove.