Castor3D 0.16.0
Multiplatform 3D engine
Public Member Functions | List of all members
castor::LoggerImpl Class Reference

#include <LoggerImpl.hpp>

Public Member Functions

 LoggerImpl (LoggerImpl const &)=delete
 
LoggerImploperator= (LoggerImpl const &)=delete
 
CU_API LoggerImpl (LoggerImpl &&rhs) noexcept
 
CU_API LoggerImploperator= (LoggerImpl &&rhs) noexcept
 
 ~LoggerImpl () noexcept=default
 
CU_API LoggerImpl (ProgramConsole &console, LogType level, LoggerInstance &parent)
 Constructor.
 
CU_API void registerCallback (LogCallback callback, void *caller)
 Registers a callback.
 
CU_API void unregisterCallback (void *caller)
 Unregisters a callback.
 
CU_API void setFileName (String const &logFilePath, LogType logLevel)
 sets the file for given log level
 
template<typename CharT >
void printMessage (LogType logLevel, std::basic_string< CharT > const &message, bool newLine)
 Prints a message to the console.
 
CU_API void logMessageQueue (MessageQueue const &queue)
 Logs a message queue.
 

Constructor & Destructor Documentation

◆ LoggerImpl() [1/3]

castor::LoggerImpl::LoggerImpl ( LoggerImpl const & )
delete

◆ LoggerImpl() [2/3]

CU_API castor::LoggerImpl::LoggerImpl ( LoggerImpl && rhs)
noexcept

◆ ~LoggerImpl()

castor::LoggerImpl::~LoggerImpl ( )
defaultnoexcept

◆ LoggerImpl() [3/3]

CU_API castor::LoggerImpl::LoggerImpl ( ProgramConsole & console,
LogType level,
LoggerInstance & parent )
explicit

Constructor.

Member Function Documentation

◆ logMessageQueue()

CU_API void castor::LoggerImpl::logMessageQueue ( MessageQueue const & queue)

Logs a message queue.

Parameters
[in]queueThe message queue

◆ operator=() [1/2]

CU_API LoggerImpl & castor::LoggerImpl::operator= ( LoggerImpl && rhs)
noexcept

◆ operator=() [2/2]

LoggerImpl & castor::LoggerImpl::operator= ( LoggerImpl const & )
delete

◆ printMessage()

template<typename CharT >
void castor::LoggerImpl::printMessage ( LogType logLevel,
std::basic_string< CharT > const & message,
bool newLine )
inline

Prints a message to the console.

Parameters
[in]logLevelThe log level
[in]messageThe message
[in]newLineTells if the new line character must be added

References castor::toUtf8().

Here is the call graph for this function:

◆ registerCallback()

CU_API void castor::LoggerImpl::registerCallback ( LogCallback callback,
void * caller )

Registers a callback.

Parameters
[in]callbackThe callback
[in]callerThe caller

◆ setFileName()

CU_API void castor::LoggerImpl::setFileName ( String const & logFilePath,
LogType logLevel )

sets the file for given log level

Parameters
[in]logFilePathThe file path
[in]logLevelThe log level. If LogType::eCount, sets the file for every log level

◆ unregisterCallback()

CU_API void castor::LoggerImpl::unregisterCallback ( void * caller)

Unregisters a callback.

Parameters
[in]callerThe caller

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