preCICE v3.1.2
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Typedefs | Functions
Logger.cpp File Reference
#include <boost/log/attributes/constant.hpp>
#include <boost/log/attributes/function.hpp>
#include <boost/log/attributes/named_scope.hpp>
#include <boost/log/attributes/timer.hpp>
#include <boost/log/sources/severity_feature.hpp>
#include <boost/log/trivial.hpp>
#include <boost/log/utility/setup/common_attributes.hpp>
#include <utility>
#include <utils/assertion.hpp>
#include "logging/LogConfiguration.hpp"
#include "logging/Logger.hpp"
Include dependency graph for Logger.cpp:

Go to the source code of this file.

Classes

class  precice::logging::precice_feature< BaseT >
 A feature that adds LogLocation info to log attributes. More...
 
struct  precice::logging::precice_log
 Required by BoostLogger to use precice_feature. More...
 
class  precice::logging::Logger::LoggerImpl
 

Namespaces

namespace  precice
 Main namespace of the precice library.
 
namespace  precice::logging
 contains the logging framework.
 
namespace  precice::logging::keywords
 

Macros

#define PRECICE_LOG_IMPL(lg, sev, loc)    BOOST_LOG_STREAM_WITH_PARAMS((lg), (boost::log::keywords::severity = (sev))(keywords::line = (loc.line))(keywords::file = (loc.file))(keywords::func = (loc.func)))
 Convenience macro that automatically passes LogLocation info to the logger.
 

Typedefs

template<class BaseLogger >
using precice::logging::BoostLogger
 The boost logger that combines required featrues.
 

Functions

 precice::logging::keywords::BOOST_PARAMETER_KEYWORD (line_ns, line)
 
 precice::logging::keywords::BOOST_PARAMETER_KEYWORD (file_ns, file)
 
 precice::logging::keywords::BOOST_PARAMETER_KEYWORD (func_ns, func)
 

Macro Definition Documentation

◆ PRECICE_LOG_IMPL

#define PRECICE_LOG_IMPL ( lg,
sev,
loc )    BOOST_LOG_STREAM_WITH_PARAMS((lg), (boost::log::keywords::severity = (sev))(keywords::line = (loc.line))(keywords::file = (loc.file))(keywords::func = (loc.func)))

Convenience macro that automatically passes LogLocation info to the logger.

Definition at line 154 of file Logger.cpp.