KarmaEngine
Game Engine for practical learning and research purposes
Loading...
Searching...
No Matches
Log.h File Reference

This file contains the Log class. I want to imagine the Log pronounciation match with that of that https://youtu.be/dZr-53LAlOw?list=PLlrATfBNZ98dC-V-N3m0Go4deliWHPFwT&t=15. More...

#include "spdlog/spdlog.h"
#include "spdlog/sinks/stdout_color_sinks.h"
#include "spdlog/fmt/ostr.h"
Include dependency graph for Log.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Karma::Log
 Karma's logging class with the logger like so. More...
 

Macros

#define KR_CORE_ERROR(...)
 A macro for logging error in Core part.
 
#define KR_CORE_WARN(...)
 A macro for logging warning in Core part.
 
#define KR_CORE_INFO(...)
 A macro for logging information in the Core part.
 
#define KR_CORE_TRACE(...)
 A macro for logging trace in the Core part.
 
#define KR_CORE_FATAL(...)
 A macro for logging fatal message in the Core part.
 
#define KR_ERROR(...)
 A macro for logging error in the Client part.
 
#define KR_WARN(...)
 A macro for logging warning in the Client part.
 
#define KR_INFO(...)
 A macro for logging information in the Client part.
 
#define KR_TRACE(...)
 A macro for logging trace in the Client part.
 
#define KR_FATAL(...)
 A macro for logging fatal message in the Client part.
 

Detailed Description

This file contains the Log class. I want to imagine the Log pronounciation match with that of that https://youtu.be/dZr-53LAlOw?list=PLlrATfBNZ98dC-V-N3m0Go4deliWHPFwT&t=15.

Author
Ravi Mohan (the_cowboy)
Version
1.0
Date
December 4, 2020

Macro Definition Documentation

◆ KR_CORE_ERROR

#define KR_CORE_ERROR ( ...)
Value:
::Karma::Log::GetCoreLogger()->error(__VA_ARGS__)
static std::shared_ptr< spdlog::logger > & GetCoreLogger()
Getter for the Core logger.
Definition Log.h:52

A macro for logging error in Core part.

Since
Karma 1.0.0

◆ KR_CORE_FATAL

#define KR_CORE_FATAL ( ...)
Value:
::Karma::Log::GetCoreLogger()->fatal(__VA_ARGS__)

A macro for logging fatal message in the Core part.

Since
Karma 1.0.0

◆ KR_CORE_INFO

#define KR_CORE_INFO ( ...)
Value:
::Karma::Log::GetCoreLogger()->info(__VA_ARGS__)

A macro for logging information in the Core part.

Since
Karma 1.0.0

◆ KR_CORE_TRACE

#define KR_CORE_TRACE ( ...)
Value:
::Karma::Log::GetCoreLogger()->trace(__VA_ARGS__)

A macro for logging trace in the Core part.

Since
Karma 1.0.0

◆ KR_CORE_WARN

#define KR_CORE_WARN ( ...)
Value:
::Karma::Log::GetCoreLogger()->warn(__VA_ARGS__)

A macro for logging warning in Core part.

Since
Karma 1.0.0

◆ KR_ERROR

#define KR_ERROR ( ...)
Value:
::Karma::Log::GetClientLogger()->error(__VA_ARGS__)
static std::shared_ptr< spdlog::logger > & GetClientLogger()
Getter for the Client logger.
Definition Log.h:59

A macro for logging error in the Client part.

Since
Karma 1.0.0

◆ KR_FATAL

#define KR_FATAL ( ...)
Value:
::Karma::Log::GetClientLogger()->fatal(__VA_ARGS__)

A macro for logging fatal message in the Client part.

Since
Karma 1.0.0

◆ KR_INFO

#define KR_INFO ( ...)
Value:
::Karma::Log::GetClientLogger()->info(__VA_ARGS__)

A macro for logging information in the Client part.

Since
Karma 1.0.0

◆ KR_TRACE

#define KR_TRACE ( ...)
Value:
::Karma::Log::GetClientLogger()->trace(__VA_ARGS__)

A macro for logging trace in the Client part.

Since
Karma 1.0.0

◆ KR_WARN

#define KR_WARN ( ...)
Value:
::Karma::Log::GetClientLogger()->warn(__VA_ARGS__)

A macro for logging warning in the Client part.

Since
Karma 1.0.0