Castor3D 0.16.0
Multiplatform 3D engine
|
#include <Logger.hpp>
Public Member Functions | |
CU_API | Logger (LogType level) |
Constructor. | |
LoggerInstance * | getInstance () const |
Returns a pointer over the instance. | |
Static Public Member Functions | |
static CU_API LoggerInstance * | initialise (LogType logLevel) |
Initialises this logger instance level. | |
static CU_API void | cleanup () |
Destroys the Logger instance. | |
static CU_API LoggerInstancePtr | createInstance (LogType logLevel) |
Creates a logger instance of given level. | |
static CU_API void | registerCallback (LogCallback const &callback, void *caller) |
Registers the logging callback. | |
static CU_API void | unregisterCallback (void *caller) |
Unregisters the logging callback. | |
static CU_API void | setFileName (Path const &logFilePath, LogType logType=LogType::eCount) |
sets the log file address | |
static CU_API LogType | getLevel () |
template<typename CharT > | |
static void | logTrace (CharT const *msg) |
Logs a trace message. | |
template<typename CharT > | |
static void | logTrace (std::basic_string_view< CharT > msg) |
Logs a trace message. | |
template<typename CharT > | |
static void | logTrace (std::basic_string< CharT > const &msg) |
Logs a trace message. | |
template<typename CharT > | |
static void | logTrace (std::basic_ostream< CharT > const &msg) |
Logs a trace message. | |
template<typename CharT > | |
static void | logTraceNoNL (CharT const *msg) |
Logs a trace message. | |
template<typename CharT > | |
static void | logTraceNoNL (std::basic_string_view< CharT > msg) |
Logs a trace message. | |
template<typename CharT > | |
static void | logTraceNoNL (std::basic_string< CharT > const &msg) |
Logs a trace message. | |
template<typename CharT > | |
static void | logTraceNoNL (std::basic_ostream< CharT > const &msg) |
Logs a trace message. | |
template<typename CharT > | |
static void | logDebug (CharT const *msg) |
Logs a debug message. | |
template<typename CharT > | |
static void | logDebug (std::basic_string_view< CharT > msg) |
Logs a debug message. | |
template<typename CharT > | |
static void | logDebug (std::basic_string< CharT > const &msg) |
Logs a debug message. | |
template<typename CharT > | |
static void | logDebug (std::basic_ostream< CharT > const &msg) |
Logs a debug message. | |
template<typename CharT > | |
static void | logDebugNoNL (CharT const *msg) |
Logs a debug message. | |
template<typename CharT > | |
static void | logDebugNoNL (std::basic_string_view< CharT > msg) |
Logs a debug message. | |
template<typename CharT > | |
static void | logDebugNoNL (std::basic_string< CharT > const &msg) |
Logs a debug message. | |
template<typename CharT > | |
static void | logDebugNoNL (std::basic_ostream< CharT > const &msg) |
Logs a debug message. | |
template<typename CharT > | |
static void | logInfo (CharT const *msg) |
Logs a message. | |
template<typename CharT > | |
static void | logInfo (std::basic_string_view< CharT > msg) |
Logs a message. | |
template<typename CharT > | |
static void | logInfo (std::basic_string< CharT > const &msg) |
Logs a message. | |
template<typename CharT > | |
static void | logInfo (std::basic_ostream< CharT > const &msg) |
Logs a message. | |
template<typename CharT > | |
static void | logInfoNoNL (CharT const *msg) |
Logs a message. | |
template<typename CharT > | |
static void | logInfoNoNL (std::basic_string_view< CharT > msg) |
Logs a message. | |
template<typename CharT > | |
static void | logInfoNoNL (std::basic_string< CharT > const &msg) |
Logs a message. | |
template<typename CharT > | |
static void | logInfoNoNL (std::basic_ostream< CharT > const &msg) |
Logs a message. | |
template<typename CharT > | |
static void | logWarning (CharT const *msg) |
Logs a warning. | |
template<typename CharT > | |
static void | logWarning (std::basic_string_view< CharT > msg) |
Logs a warning. | |
template<typename CharT > | |
static void | logWarning (std::basic_string< CharT > const &msg) |
Logs a warning. | |
template<typename CharT > | |
static void | logWarning (std::basic_ostream< CharT > const &msg) |
Logs a warning. | |
template<typename CharT > | |
static void | logWarningNoNL (CharT const *msg) |
Logs a warning. | |
template<typename CharT > | |
static void | logWarningNoNL (std::basic_string_view< CharT > msg) |
Logs a warning. | |
template<typename CharT > | |
static void | logWarningNoNL (std::basic_string< CharT > const &msg) |
Logs a warning. | |
template<typename CharT > | |
static void | logWarningNoNL (std::basic_ostream< CharT > const &msg) |
Logs a warning. | |
template<typename CharT > | |
static void | logError (CharT const *msg) |
Logs an error. | |
template<typename CharT > | |
static void | logError (std::basic_string_view< CharT > msg) |
Logs an error. | |
template<typename CharT > | |
static void | logError (std::basic_string< CharT > const &msg) |
Logs an error. | |
template<typename CharT > | |
static void | logError (std::basic_ostream< CharT > const &msg) |
Logs an error. | |
template<typename CharT > | |
static void | logErrorNoNL (CharT const *msg) |
Logs an error. | |
template<typename CharT > | |
static void | logErrorNoNL (std::basic_string_view< CharT > msg) |
Logs an error. | |
template<typename CharT > | |
static void | logErrorNoNL (std::basic_string< CharT > const &msg) |
Logs an error. | |
template<typename CharT > | |
static void | logErrorNoNL (std::basic_ostream< CharT > const &msg) |
Logs an error. | |
static CU_API Logger & | getSingleton () |
Returns a reference over the instance. | |
static CU_API Logger * | getSingletonPtr () |
Returns a pointer over the instance. | |
Additional Inherited Members | |
Protected Member Functions inherited from castor::NonMovable | |
NonMovable ()=default | |
Constructor. | |
~NonMovable () noexcept=default | |
Destructor. | |
|
static |
Creates a logger instance of given level.
[in] | logLevel | The log level. |
|
inline |
Returns a pointer over the instance.
Returns a reference over the instance.
Returns a pointer over the instance.
|
static |
Initialises this logger instance level.
[in] | logLevel | The log level |
|
inlinestatic |
Logs a debug message.
[in] | msg | The line to log |
References castor::eDebug, and castor::toUtf8().
Referenced by logDebug().
|
inlinestatic |
Logs a debug message.
[in] | msg | The line to log |
References logDebug().
|
inlinestatic |
Logs a debug message.
[in] | msg | The line to log |
References castor::eDebug, and castor::toUtf8().
|
inlinestatic |
Logs a debug message.
[in] | msg | The line to log |
References castor::eDebug, and castor::toUtf8().
|
inlinestatic |
Logs a debug message.
[in] | msg | The line to log |
References castor::eDebug, and castor::toUtf8().
Referenced by logDebugNoNL().
|
inlinestatic |
Logs a debug message.
[in] | msg | The line to log |
References logDebugNoNL().
|
inlinestatic |
Logs a debug message.
[in] | msg | The line to log |
References castor::eDebug, and castor::toUtf8().
|
inlinestatic |
Logs a debug message.
[in] | msg | The line to log |
References castor::eDebug, and castor::toUtf8().
|
inlinestatic |
Logs an error.
[in] | msg | The line to log |
References castor::eError, and castor::toUtf8().
Referenced by logError().
|
inlinestatic |
Logs an error.
[in] | msg | The line to log |
References logError().
|
inlinestatic |
Logs an error.
[in] | msg | The line to log |
References castor::eError, and castor::toUtf8().
|
inlinestatic |
Logs an error.
[in] | msg | The line to log |
References castor::eError, and castor::toUtf8().
|
inlinestatic |
Logs an error.
[in] | msg | The line to log |
References castor::eError, and castor::toUtf8().
Referenced by logErrorNoNL().
|
inlinestatic |
Logs an error.
[in] | msg | The line to log |
References logErrorNoNL().
|
inlinestatic |
Logs an error.
[in] | msg | The line to log |
References castor::eError, and castor::toUtf8().
|
inlinestatic |
Logs an error.
[in] | msg | The line to log |
References castor::eError, and castor::toUtf8().
|
inlinestatic |
Logs a message.
[in] | msg | The line to log |
References castor::eInfo, and castor::toUtf8().
Referenced by logInfo().
|
inlinestatic |
Logs a message.
[in] | msg | The line to log |
References logInfo().
|
inlinestatic |
Logs a message.
[in] | msg | The line to log |
References castor::eInfo, and castor::toUtf8().
|
inlinestatic |
Logs a message.
[in] | msg | The line to log |
References castor::eInfo, and castor::toUtf8().
|
inlinestatic |
Logs a message.
[in] | msg | The line to log |
References castor::eInfo, and castor::toUtf8().
Referenced by logInfoNoNL().
|
inlinestatic |
Logs a message.
[in] | msg | The line to log |
References logInfoNoNL().
|
inlinestatic |
Logs a message.
[in] | msg | The line to log |
References castor::eInfo, and castor::toUtf8().
|
inlinestatic |
Logs a message.
[in] | msg | The line to log |
References castor::eInfo, and castor::toUtf8().
|
inlinestatic |
Logs a trace message.
[in] | msg | The line to log |
References castor::eTrace, and castor::toUtf8().
Referenced by logTrace().
|
inlinestatic |
Logs a trace message.
[in] | msg | The line to log |
References logTrace().
|
inlinestatic |
Logs a trace message.
[in] | msg | The line to log |
References castor::eTrace, and castor::toUtf8().
|
inlinestatic |
Logs a trace message.
[in] | msg | The line to log |
References castor::eTrace, and castor::toUtf8().
|
inlinestatic |
Logs a trace message.
[in] | msg | The line to log |
References castor::eTrace, and castor::toUtf8().
Referenced by logTraceNoNL().
|
inlinestatic |
Logs a trace message.
[in] | msg | The line to log |
References logTraceNoNL().
|
inlinestatic |
Logs a trace message.
[in] | msg | The line to log |
References castor::eTrace, and castor::toUtf8().
|
inlinestatic |
Logs a trace message.
[in] | msg | The line to log |
References castor::eTrace, and castor::toUtf8().
|
inlinestatic |
Logs a warning.
[in] | msg | The line to log |
References castor::eWarning, and castor::toUtf8().
Referenced by logWarning().
|
inlinestatic |
Logs a warning.
[in] | msg | The line to log |
References logWarning().
|
inlinestatic |
Logs a warning.
[in] | msg | The line to log |
References castor::eWarning, and castor::toUtf8().
|
inlinestatic |
Logs a warning.
[in] | msg | The line to log |
References castor::eWarning, and castor::toUtf8().
|
inlinestatic |
Logs a warning.
[in] | msg | The line to log |
References castor::eWarning, and castor::toUtf8().
Referenced by logWarningNoNL().
|
inlinestatic |
Logs a warning.
[in] | msg | The line to log |
References logWarningNoNL().
|
inlinestatic |
Logs a warning.
[in] | msg | The line to log |
References castor::eWarning, and castor::toUtf8().
|
inlinestatic |
Logs a warning.
[in] | msg | The line to log |
References castor::eWarning, and castor::toUtf8().
|
static |
Registers the logging callback.
[in] | callback | The callback |
[in] | caller | Pointer to user data, used to identify the callback |
|
static |
sets the log file address
[in] | logFilePath | The log file path |
[in] | logType | The log type |
|
static |
Unregisters the logging callback.
[in] | caller | Pointer to user data |