EHS
Log.h File Reference
#include <initializer_list>
#include "Types.h"
#include "Array.h"
#include "UTF.h"
#include "Str.h"

Go to the source code of this file.

Classes

class  ehs::Log
 

Namespaces

namespace  ehs
 

Macros

#define EHS_LOG_INT(type, code, msg)   ehs::Log::Raise(ehs::Log(type, {ehs::GetAcronym_8(), EHS_FILE, EHS_FUNC, ehs::Str_8::FromNum((ehs::UInt_32)EHS_LINE)}, code, msg))
 
#define EHS_LOG(type, code, msg)   ehs::Log::Raise(ehs::Log(type, {ehs::GetAppName_8(), EHS_FILE, EHS_FUNC, ehs::Str_8::FromNum((ehs::UInt_32)EHS_LINE)}, code, msg))
 
#define EHS_LOG_SUCCESS()   ehs::Log::Raise({})
 

Typedefs

typedef void(* ehs::LogRaisedCb) (const Log &)
 
typedef void(* ehs::LogOutputCb) (const Array< Log > &)
 

Enumerations

enum class  ehs::LogType : UInt_8 { ehs::SUCCESS , ehs::ERR , ehs::WARN , ehs::INFO }
 

Macro Definition Documentation

◆ EHS_LOG

#define EHS_LOG (   type,
  code,
  msg 
)    ehs::Log::Raise(ehs::Log(type, {ehs::GetAppName_8(), EHS_FILE, EHS_FUNC, ehs::Str_8::FromNum((ehs::UInt_32)EHS_LINE)}, code, msg))

◆ EHS_LOG_INT

#define EHS_LOG_INT (   type,
  code,
  msg 
)    ehs::Log::Raise(ehs::Log(type, {ehs::GetAcronym_8(), EHS_FILE, EHS_FUNC, ehs::Str_8::FromNum((ehs::UInt_32)EHS_LINE)}, code, msg))

◆ EHS_LOG_SUCCESS

#define EHS_LOG_SUCCESS ( )    ehs::Log::Raise({})