 |
helics
3.0.1
|
40 std::atomic<bool> halted{
true};
42 std::atomic<bool> hasFile{
false};
43 std::ofstream outFile;
44 std::shared_ptr<LoggingCore> logCore;
46 std::atomic<int> consoleLevel{
53 explicit Logger(std::shared_ptr<LoggingCore> core);
58 void openFile(
const std::string& file);
74 void log(
int level, std::string logMessage);
90 void logFunction(std::string&& message);
96 std::ofstream outFile;
105 explicit LoggerNoThread(
const std::shared_ptr<LoggingCore>& core);
108 void openFile(
const std::string& file);
124 void log(
int level,
const std::string& logMessage);
constexpr int always_log
level that will always log
Definition: logger.h:31
void changeLevels(int cLevel, int fLevel)
Definition: logger.cpp:76
void closeFile()
Definition: logger.cpp:53
Logger()
Definition: logger.cpp:28
void flush()
Definition: logger.cpp:92
void startLogging()
Definition: logger.h:67
void log(const std::string &logMessage)
Definition: logger.h:128
bool isRunning() const
Definition: logger.cpp:172
void log(int level, std::string logMessage)
Definition: logger.cpp:82
int fileLevel
level below which we need to print to a file
Definition: logger.h:99
void changeLevels(int cLevel, int fLevel)
Definition: logger.cpp:146
bool isRunning() const
Definition: logger.cpp:96
int consoleLevel
level below which we need to print to the console
Definition: logger.h:98
void flush()
Definition: logger.cpp:164
void closeFile()
Definition: logger.cpp:135
constexpr int log_everything
level that will log everything
Definition: logger.h:32
the main namespace for the helics co-simulation library User functions will be in the helics namespac...
Definition: AsyncFedCallInfo.hpp:14
void openFile(const std::string &file)
Definition: logger.cpp:130
void haltLogging()
Definition: logger.cpp:69
void startLogging()
Definition: logger.h:116
void log(int level, const std::string &logMessage)
Definition: logger.cpp:152
Definition: loggerCore.hpp:85
void openFile(const std::string &file)
Definition: logger.cpp:43
~Logger()
Definition: logger.cpp:39
void log(std::string logMessage)
Definition: logger.h:78