NcEngine
Log.h File Reference
#include "detail/LogInternal.h"
#include <string_view>

Go to the source code of this file.

Macros

#define NC_LOG_INFO(str, ...)   ;
 
#define NC_LOG_WARNING(str, ...)   ;
 
#define NC_LOG_ERROR(str, ...)   ;
 
#define NC_LOG_EXCEPTION(exception)   ;
 
#define NC_LOG_INFO_EXT(subsystem, file, line, str)   ;
 
#define NC_LOG_WARNING_EXT(subsystem, file, line, str)   ;
 
#define NC_LOG_ERROR_EXT(subsystem, file, line, str)   ;
 
#define NC_LOG_TRACE(str, ...)   ;
 
#define NC_LOG_TRACE_EXT(subsystem, file, line, str)   ;
 

Typedefs

using nc::LogCallback_t = void(*)(LogCategory category, std::string_view subsystem, std::string_view function, int line, std::string_view message)
 Function type for receiving logging messages.
 

Enumerations

enum class  nc::LogCategory : char { Info = 'I' , Warning = 'W' , Error = 'E' , Verbose = 'V' }
 Type of a log message.
 

Functions

void nc::SetLogCallback (LogCallback_t callback)
 Set a callback to reroute logging messages (defaults to stdout).
 

Detailed Description