preCICE v3.1.2
|
#include "LogConfiguration.hpp"
#include <algorithm>
#include <boost/core/null_deleter.hpp>
#include <boost/log/attributes/mutable_constant.hpp>
#include <boost/log/core.hpp>
#include <boost/log/expressions.hpp>
#include <boost/log/sinks/sink.hpp>
#include <boost/log/support/date_time.hpp>
#include <boost/log/trivial.hpp>
#include <boost/log/utility/setup/console.hpp>
#include <boost/program_options.hpp>
#include <deque>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <iterator>
#include <map>
#include <sstream>
#include <string>
#include <utility>
#include "utils/String.hpp"
#include "utils/assertion.hpp"
Go to the source code of this file.
Classes | |
class | precice::logging::timestamp_formatter_factory |
A custom formatter that handles the TimeStamp format string. More... | |
class | precice::logging::colorized_severity_formatter_factory |
A custom formatter that handles the colorized Severity formatting. More... | |
class | precice::logging::severity_formatter_factory |
A custom formatter that handles non-colorized Severity formatting. More... | |
class | precice::logging::NullSink |
A custom sink that does nothing. It is used to disable the default sink of boost.Log. More... | |
class | precice::logging::StreamBackend |
A simple backends that outputs the message to a stream. More... | |
Namespaces | |
namespace | precice |
Main namespace of the precice library. | |
namespace | precice::logging |
contains the logging framework. | |
Functions | |
LoggingConfiguration | precice::logging::readLogConfFile (std::string const &filename) |
Reads a log file, returns a logging configuration. | |
void | precice::logging::setupLogging (LoggingConfiguration configs, bool enabled=true) |
Configures the logging from a LoggingConfiguration. | |
void | precice::logging::setupLogging (std::string const &logConfigFile="log.conf") |
Configures the logging from a log file. | |
void | precice::logging::setMPIRank (int const rank) |
void | precice::logging::setParticipant (std::string const &participant) |
GlobalLoggingConfig & | precice::logging::getGlobalLoggingConfig () |
Returns the global logging configuration. | |
void | precice::logging::lockConf () |