Namespace: Log
Language: C++
Type: Defold C++
File: log.h
Source: engine/dlib/src/dmsdk/dlib/log.h
Include: dmsdk/dlib/log.h
Logging functions.
printf since these can print to the platform specific logsType: MACRO If DLIB_LOG_DOMAIN is defined the value of the defined is printed after severity. Otherwise DEFAULT will be printed.
Notes
Examples
#define DLIB_LOG_DOMAIN "MyOwnDomain"
#include
Type: FUNCTION Debug messages are temporary log instances used when debugging a certain behavior Use dmLogOnceDebug for one-shot logging
Parameters
format (const char*) - Format stringargs (…) - Format string args (variable arg list)Returns
return (void)Type: FUNCTION Error messages are used in cases where an recoverable error has occurred. Use dmLogOnceError for one-shot logging
Parameters
format (const char*) - Format stringargs (…) - Format string args (variable arg list)Returns
return (void)Type: FUNCTION Fatal messages are used in cases where an unrecoverable error has occurred. Use dmLogOnceFatal for one-shot logging
Parameters
format (const char*) - Format stringargs (…) - Format string args (variable arg list)Returns
return (void)Type: FUNCTION finalize the logging system.
Type: FUNCTION Get log system severity level.
Returns
severity (LogSeverity) - Current log system severity levelType: FUNCTION Info messages are used to inform the developers of relevant information Use dmLogOnceInfo for one-shot logging
Parameters
format (const char*) - Format stringargs (…) - Format string args (variable arg list)Returns
return (void)Type: FUNCTION Running this function is only required in order to start the log server. The function never fails even if the log server cannot be started. Any startup errors are reported to stderr.
Parameters
params (LogParams*) - log parametersType: FUNCTION Registers a log listener. This listener receive logs even in release bundle.
Notes
Parameters
listener (FLogListener)Type: FUNCTION Set log system severity level.
Parameters
severity (LogSeverity) - Log system severity level to setType: FUNCTION Unregisters a log listener.
Parameters
listener (FLogListener)Type: FUNCTION Debug messages are temporary log instances used when debugging a certain behavior Use dmLogOnceUserDebug for one-shot logging
Parameters
format (const char*) - Format stringargs (…) - Format string args (variable arg list)Returns
return (void)Type: FUNCTION Warning messages are used to inform the developers about potential problems which can cause errors. Use dmLogOnceWarning for one-shot logging
Parameters
format (const char*) - Format stringargs (…) - Format string args (variable arg list)Returns
return (void)Type: TYPEDEF dmLog listener function type. Provides all logs from dmLog* functions and print/pprint Lua functions. Used with dmLogRegisterListener() and dmLogUnregisterListener()
Parameters
severity (LogSeverity)domain (const char*)formatted_string (const char*) - null terminated stringType: STRUCT Parameters for dmLogInitialize().
Type: ENUM Log severity
Members
LOG_SEVERITY_DEBUGLOG_SEVERITY_USER_DEBUGLOG_SEVERITY_INFOLOG_SEVERITY_WARNINGLOG_SEVERITY_ERRORLOG_SEVERITY_FATAL