AQUAgpusph 5.0.4
Loading...
Searching...
No Matches
Logger.hpp File Reference

Terminal output, with Log automatic copying. (See Aqua::InputOutput::Logger for details) More...

#include "aquagpusph/sphPrerequisites.hpp"
#include <string>
#include <fstream>
#include <vector>
#include <mutex>
#include <CL/cl.h>
#include "Report.hpp"
Include dependency graph for Logger.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  Aqua::InputOutput::Logger
 On screen and log file output manager. More...

Namespaces

namespace  Aqua
 Main AQUAgpusph namespace.
namespace  Aqua::InputOutput
 Input/Output data interfaces.

Macros

#define addMessageF(level, log)
#define LOG(level, log)
#define LOG0(level, log)

Enumerations

enum  Aqua::TLogLevel {
  Aqua::L_DEBUG , Aqua::L_INFO , Aqua::L_WARNING , Aqua::L_ERROR ,
  Aqua::L_NONE
}

Detailed Description

Terminal output, with Log automatic copying. (See Aqua::InputOutput::Logger for details)

Macro Definition Documentation

◆ addMessageF

#define addMessageF ( level,
log )
Value:
addMessage(level, log, __METHOD_CLASS_NAME__)
#define __METHOD_CLASS_NAME__
Returns automatically the current class and function names.
Definition sphPrerequisites.hpp:383

Overloaded version of Aqua::InputOutput::Logger::addMessage() method, which is automatically setting the class and function names.

◆ LOG

#define LOG ( level,
log )
Value:
Aqua::InputOutput::Logger::singleton()->addMessageF(level, log)
static Logger * singleton()
Get –creating it the first time– the logger instance.
Definition Logger.cpp:64

Overloaded version of Aqua::InputOutput::Logger::singleton()->addMessageF(), such that this macro can ve conveniently called to fill the log file.

◆ LOG0

#define LOG0 ( level,
log )
Value:
void addMessage(TLogLevel level, std::string log, std::string func="")
Add a new log record message.
Definition Logger.cpp:90

Overloaded version of Aqua::InputOutput::Logger::singleton()->addMessage(), such that this macro can ve conveniently called to fill the log file.