Kale
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Variables
Logger.hpp File Reference
#include <fstream>
#include <string>
#include <string.h>
#include <mutex>

Go to the source code of this file.

Classes

class  Kale::Logger
 

Namespaces

namespace  Kale
 

Macros

#define __FILENAME__   strrchr("/" __FILE__, '/') + 1
 
#define klPrint(x)   Kale::console.log(__LINE__, __FILENAME__, x)
 
#define klInfo(x)   Kale::console.info(__LINE__, __FILENAME__, x)
 
#define klWarn(x)   Kale::console.warn(__LINE__, __FILENAME__, x)
 
#define klError(x)   Kale::console.error(__LINE__, __FILENAME__, x)
 
#define klAssert(x)   Kale::console.assertCheck(__LINE__, __FILENAME__, x)
 
#define klAssertMsg(x, y)   Kale::console.assertCheck(__LINE__, __FILENAME__, x, y)
 

Variables

Logger Kale::console
 

Macro Definition Documentation

◆ __FILENAME__

#define __FILENAME__   strrchr("/" __FILE__, '/') + 1

The base filename/relative file path without the source path

Definition at line 326 of file Logger.hpp.

◆ klAssert

#define klAssert ( x)    Kale::console.assertCheck(__LINE__, __FILENAME__, x)

Prints an assertion to the console/log file if the assertion is false

Definition at line 352 of file Logger.hpp.

◆ klAssertMsg

#define klAssertMsg ( x,
y )   Kale::console.assertCheck(__LINE__, __FILENAME__, x, y)

Prints an assertion to the console/log file if the assertion is false

Definition at line 357 of file Logger.hpp.

◆ klError

#define klError ( x)    Kale::console.error(__LINE__, __FILENAME__, x)

Prints an error to the console/log file

Definition at line 347 of file Logger.hpp.

◆ klInfo

#define klInfo ( x)    Kale::console.info(__LINE__, __FILENAME__, x)

Prints info to the console/log file

Definition at line 337 of file Logger.hpp.

◆ klPrint

#define klPrint ( x)    Kale::console.log(__LINE__, __FILENAME__, x)

Prints output to the console/log file

Definition at line 332 of file Logger.hpp.

◆ klWarn

#define klWarn ( x)    Kale::console.warn(__LINE__, __FILENAME__, x)

Prints a warning to the console/log file

Definition at line 342 of file Logger.hpp.