GridComputing
Job Management in Grid Computing
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
log.h File Reference
#include <string>
#include <fstream>
#include <mutex>
#include <iostream>
#include <cstdarg>
#include <sstream>

Go to the source code of this file.

Classes

struct  Writer
 Base class for Writers. More...
 
struct  ConsoleWritePolicy
 Writer for console. More...
 
struct  FileWritePolicy
 Writer for file (log.txt) More...
 
class  Logger< WritePolicy >
 Logger singleton Class. More...
 

Macros

#define Console   ConsoleWritePolicy
 Alias for ConsoleWritePolicy.
 
#define FileWP   FileWritePolicy
 Alias for FileWritePolicy.
 
#define sLog(policy)   Logger<policy>::Instance()
 Short way to access the log. Example: sLog(Console)->Log("Message here.");.
 

Macro Definition Documentation

#define Console   ConsoleWritePolicy

Alias for ConsoleWritePolicy.

#define FileWP   FileWritePolicy

Alias for FileWritePolicy.

#define sLog (   policy)    Logger<policy>::Instance()

Short way to access the log. Example: sLog(Console)->Log("Message here.");.