35 #ifndef _BLAZE_UTIL_LOGGING_LOGGER_H_
36 #define _BLAZE_UTIL_LOGGING_LOGGER_H_
44 #include <boost/thread/mutex.hpp>
99 template<
typename Type >
void log(
const Type& message );
146 template<
typename Type >
149 boost::mutex::scoped_lock lock(
mutex_ );
150 if( !
log_.is_open() )
RAII object for function tracing.The FunctionTrace class is an auxiliary helper class for the tracing...
Definition: FunctionTrace.h:68
Header file for the SystemClock class.
#define BLAZE_BEFRIEND_SINGLETON
Friendship declaration for the Singleton class template.This macro has to be used in order to declare...
Definition: Singleton.h:447
Logging section for (non-)MPI-parallel environments.The LogSection class is an auxiliary helper class...
Definition: LogSection.h:67
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
Header file for the Singleton class.
boost::mutex mutex_
Synchronization mutex for thread-parallel logging.
Definition: Logger.h:113
void openLogFile()
Opens and initializes the log file.
Definition: Logger.cpp:144
std::ofstream log_
The log file.
Definition: Logger.h:114
Logger()
Constructor for the Logger class.
Definition: Logger.cpp:77
Base class for all lifetime managed singletons.The Singleton class represents the base class for all ...
Definition: Singleton.h:606
~Logger()
Destructor for the Logger class.
Definition: Logger.cpp:99
Implementation of a logger class.The Logger class represents the core of the logging functionality...
Definition: Logger.h:77
void log(const Type &message)
Writes the log message to the log file.
Definition: Logger.h:147