8#ifndef FMTlogger_H_INCLUDED
9#define FMTlogger_H_INCLUDED
10#include <boost/serialization/export.hpp>
11#include <boost/thread/recursive_mutex.hpp>
18 namespace serialization
28 class FMTsolverlogger;
38 friend class boost::serialization::access;
43 template<
class Archive>
44 void save(Archive& ar,
const unsigned int version)
const;
49 template<
class Archive>
50 void load(Archive& ar,
const unsigned int version);
55 template<
class Archive>
56 void serialize(Archive &ar,
const unsigned int file_version);
61 void settofile(
const std::string& filename)
const;
63 #if defined FMTWITHOSI
75 mutable boost::recursive_mutex
mtx;
84 virtual void cout(
const char* message)
const;
201 virtual bool logwithlevel(
const std::string &msg,
const int& messagelevel)
const;
#define FMTEXPORT
Definition: FMTutility.hpp:92
Definition: FMTlogger.hpp:37
virtual FMTlogger & operator<<(const std::time_t &msg)
bool flushstream
If true will flush stream at each write.
Definition: FMTlogger.hpp:78
std::string filepath
string path the the potential filestream
Definition: FMTlogger.hpp:68
virtual FMTlogger & operator<<(const float &msg)
virtual FMTlogger & operator<<(const size_t &msg)
virtual FMTlogger & operator<<(const std::string &msg)
virtual void cout(const char *message) const
virtual bool logwithlevel(const std::string &msg, const int &messagelevel) const
virtual void setlogginglevel(const int &level)
std::unique_ptr< FMTsolverlogger > solverref
Definition: FMTlogger.hpp:64
void setstreamflush(bool flush)
virtual FMTsolverlogger * getsolverlogger()
virtual FMTlogger * clone() const
void redirectofile(const std::string &filename)
virtual FMTlogger & operator<<(const unsigned int &msg)
FMTlogger(const FMTlogger &rhs)
virtual void checkSeverity()
std::ofstream * filestream
stream if the logger redirect the logging into somesort of file.
Definition: FMTlogger.hpp:71
virtual FMTlogger & operator<<(const double &msg)
boost::recursive_mutex mtx
Mutex for multi-threading.
Definition: FMTlogger.hpp:75
virtual FMTlogger & operator<<(const int &msg)
virtual std::string getlogstamp() const
Definition: FMTsolverlogger.hpp:25
Namespace for the log management, provides different log handlers.
Definition: FMTdebuglogger.hpp:14
Definition: FMTaction.hpp:364