Elevate Engine 1
Loading...
Searching...
No Matches
Log.h File Reference
#include <format>
#include <string>
#include <memory>
#include <spdlog/spdlog.h>
#include <spdlog/sinks/stdout_color_sinks.h>
#include "Core.h"

Go to the source code of this file.

Classes

class  Elevate::LogImpl
 
class  Elevate::Log
 

Namespaces

namespace  Elevate
 

Macros

#define EE_TRACE_PREFIX   ""
 
#define EE_INFO_PREFIX   ""
 
#define EE_WARN_PREFIX   ""
 
#define EE_ERROR_PREFIX   ""
 
#define EE_FATAL_PREFIX   ""
 
#define EE_TRACE(...)   ::Elevate::Log::Trace(::Elevate::Log::GetClientLogger(), std::format(__VA_ARGS__))
 
#define EE_INFO(...)   ::Elevate::Log::Info(::Elevate::Log::GetClientLogger(), std::format(__VA_ARGS__))
 
#define EE_WARN(...)   ::Elevate::Log::Warn(::Elevate::Log::GetClientLogger(), std::format(__VA_ARGS__))
 
#define EE_ERROR(...)   ::Elevate::Log::Error(::Elevate::Log::GetClientLogger(), std::format(__VA_ARGS__))
 
#define EE_FATAL(...)   ::Elevate::Log::Fatal(::Elevate::Log::GetClientLogger(), std::format(__VA_ARGS__))
 
#define EE_CTRACE(condition, ...)   if(condition) { EE_TRACE(__VA_ARGS__); }
 
#define EE_CINFO(condition, ...)   if(condition) { EE_INFO(__VA_ARGS__); }
 
#define EE_CWARN(condition, ...)   if(condition) { EE_WARN(__VA_ARGS__); }
 
#define EE_CERROR(condition, ...)   if(condition) { EE_ERROR(__VA_ARGS__); }
 
#define EE_CFATAL(condition, ...)   if(condition) { EE_FATAL(__VA_ARGS__); }
 

Macro Definition Documentation

◆ EE_CERROR

#define EE_CERROR (   condition,
  ... 
)    if(condition) { EE_ERROR(__VA_ARGS__); }

Definition at line 75 of file Log.h.

◆ EE_CFATAL

#define EE_CFATAL (   condition,
  ... 
)    if(condition) { EE_FATAL(__VA_ARGS__); }

Definition at line 76 of file Log.h.

◆ EE_CINFO

#define EE_CINFO (   condition,
  ... 
)    if(condition) { EE_INFO(__VA_ARGS__); }

Definition at line 73 of file Log.h.

◆ EE_CTRACE

#define EE_CTRACE (   condition,
  ... 
)    if(condition) { EE_TRACE(__VA_ARGS__); }

Definition at line 72 of file Log.h.

◆ EE_CWARN

#define EE_CWARN (   condition,
  ... 
)    if(condition) { EE_WARN(__VA_ARGS__); }

Definition at line 74 of file Log.h.

◆ EE_ERROR

#define EE_ERROR (   ...)    ::Elevate::Log::Error(::Elevate::Log::GetClientLogger(), std::format(__VA_ARGS__))

Definition at line 69 of file Log.h.

◆ EE_ERROR_PREFIX

#define EE_ERROR_PREFIX   ""

Definition at line 22 of file Log.h.

◆ EE_FATAL

#define EE_FATAL (   ...)    ::Elevate::Log::Fatal(::Elevate::Log::GetClientLogger(), std::format(__VA_ARGS__))

Definition at line 70 of file Log.h.

◆ EE_FATAL_PREFIX

#define EE_FATAL_PREFIX   ""

Definition at line 23 of file Log.h.

◆ EE_INFO

#define EE_INFO (   ...)    ::Elevate::Log::Info(::Elevate::Log::GetClientLogger(), std::format(__VA_ARGS__))

Definition at line 67 of file Log.h.

◆ EE_INFO_PREFIX

#define EE_INFO_PREFIX   ""

Definition at line 20 of file Log.h.

◆ EE_TRACE

#define EE_TRACE (   ...)    ::Elevate::Log::Trace(::Elevate::Log::GetClientLogger(), std::format(__VA_ARGS__))

Definition at line 66 of file Log.h.

◆ EE_TRACE_PREFIX

#define EE_TRACE_PREFIX   ""

Definition at line 19 of file Log.h.

◆ EE_WARN

#define EE_WARN (   ...)    ::Elevate::Log::Warn(::Elevate::Log::GetClientLogger(), std::format(__VA_ARGS__))

Definition at line 68 of file Log.h.

◆ EE_WARN_PREFIX

#define EE_WARN_PREFIX   ""

Definition at line 21 of file Log.h.