#include <loggerCore.hpp>
class to manage a single thread for all logging
◆ LoggingCore()
helics::LoggingCore::LoggingCore |
( |
| ) |
|
◆ ~LoggingCore()
helics::LoggingCore::~LoggingCore |
( |
| ) |
|
◆ addFileProcessor()
int helics::LoggingCore::addFileProcessor |
( |
std::function< void(std::string &&message)> |
newFunction | ) |
|
add a file processing callback (not just files)
- Parameters
-
newFunction | the callback to call on receipt of a message |
◆ addMessage() [1/4]
void helics::LoggingCore::addMessage |
( |
const std::string & |
message | ) |
|
add a message for the LoggingCore or just general console print
◆ addMessage() [2/4]
void helics::LoggingCore::addMessage |
( |
int |
index, |
|
|
const std::string & |
message |
|
) |
| |
add a message for a specific Logger
- Parameters
-
index | the index of the function callback to use |
message | the message to send |
◆ addMessage() [3/4]
void helics::LoggingCore::addMessage |
( |
int |
index, |
|
|
std::string && |
message |
|
) |
| |
add a message for a specific Logger
- Parameters
-
index | the index of the function callback to use |
message | the message to send |
◆ addMessage() [4/4]
void helics::LoggingCore::addMessage |
( |
std::string && |
message | ) |
|
move a message for the LoggingCore or just general console print
◆ haltOperations()
void helics::LoggingCore::haltOperations |
( |
int |
loggerIndex | ) |
|
remove a function callback
◆ setFastShutdown()
void helics::LoggingCore::setFastShutdown |
( |
| ) |
|
|
static |
enable a fast shutdown in situations where a thread may be force-ably terminated
◆ updateProcessingFunction()
void helics::LoggingCore::updateProcessingFunction |
( |
int |
index, |
|
|
std::function< void(std::string &&message)> |
newFunction |
|
) |
| |
update a callback for a particular instance
The documentation for this class was generated from the following files: