Classes | Namespaces | Macros | Typedefs | Functions
MessageLogger.h File Reference
#include "messagefacility/Utilities/ELseverityLevel.h"
#include "messagefacility/Utilities/ErrorObj.h"
#include <memory>
#include <ostream>
#include <string>
#include <type_traits>
#include <utility>

Go to the source code of this file.

Classes

class  mf::NeverLogger_
 
class  mf::MaybeLogger_< SEV, VERBATIM >
 

Namespaces

 fhicl
 
 mf
 

Macros

#define MF_LOG_INFO(category)    mf::LogInfo { category, __FILE__, __LINE__ }
 
#define MF_LOG_WARNING(category)    mf::LogWarning { category, __FILE__, __LINE__ }
 
#define MF_LOG_ERROR(category)    mf::LogError { category, __FILE__, __LINE__ }
 
#define MF_LOG_SYSTEM(category)    mf::LogSystem { category, __FILE__, __LINE__ }
 
#define MF_LOG_VERBATIM(category)    mf::LogVerbatim { category, __FILE__, __LINE__ }
 
#define MF_LOG_PRINT(category)    mf::LogPrint { category, __FILE__, __LINE__ }
 
#define MF_LOG_PROBLEM(category)    mf::LogProblem { category, __FILE__, __LINE__ }
 
#define MF_LOG_ABSOLUTE(category)    mf::LogAbsolute { category, __FILE__, __LINE__ }
 
#define MF_LOG_DEBUG(id)    mf::LogDebug { id, __FILE__, __LINE__ }
 
#define MF_LOG_TRACE(id)    mf::LogTrace { id, __FILE__, __LINE__ }
 

Typedefs

using mf::LogDebug = MaybeLogger_< ELseverityLevel::ELsev_success, false >
 
using mf::LogInfo = MaybeLogger_< ELseverityLevel::ELsev_info, false >
 
using mf::LogWarning = MaybeLogger_< ELseverityLevel::ELsev_warning, false >
 
using mf::LogError = MaybeLogger_< ELseverityLevel::ELsev_error, false >
 
using mf::LogSystem = MaybeLogger_< ELseverityLevel::ELsev_severe, false >
 
using mf::LogTrace = MaybeLogger_< ELseverityLevel::ELsev_success, true >
 
using mf::LogVerbatim = MaybeLogger_< ELseverityLevel::ELsev_info, true >
 
using mf::LogPrint = MaybeLogger_< ELseverityLevel::ELsev_warning, true >
 
using mf::LogProblem = MaybeLogger_< ELseverityLevel::ELsev_error, true >
 
using mf::LogAbsolute = MaybeLogger_< ELseverityLevel::ELsev_severe, true >
 

Functions

void mf::StartMessageFacility (fhicl::ParameterSet const &pset, string const &applicationName)
 
void mf::EndMessageFacility ()
 
bool mf::isMessageProcessingSetUp ()
 
void mf::LogErrorObj (ErrorObj *msg)
 
void mf::LogStatistics ()
 
void mf::FlushMessageLog ()
 
void mf::SetApplicationName (string const &applicationName)
 
void mf::SetHostName (string const &hostname)
 
void mf::SetHostAddr (string const &hostaddr)
 
void mf::SetPid (long const pid)
 
string const & mf::GetApplicationName ()
 
string const & mf::GetHostName ()
 
string const & mf::GetHostAddr ()
 
long mf::GetPid ()
 
void mf::SetContextIteration (string const &val)
 
void mf::SetIteration (string const &val)
 
string const & mf::GetIteration ()
 
void mf::SetContextSinglet (string const &val)
 
void mf::SetModuleName (string const &val)
 
string const & mf::GetModuleName ()
 
bool mf::isDebugEnabled ()
 
bool mf::isInfoEnabled ()
 
bool mf::isWarningEnabled ()
 

Macro Definition Documentation

#define MF_LOG_ABSOLUTE (   category)    mf::LogAbsolute { category, __FILE__, __LINE__ }

Definition at line 242 of file MessageLogger.h.

#define MF_LOG_DEBUG (   id)    mf::LogDebug { id, __FILE__, __LINE__ }

Definition at line 268 of file MessageLogger.h.

#define MF_LOG_ERROR (   category)    mf::LogError { category, __FILE__, __LINE__ }

Definition at line 229 of file MessageLogger.h.

#define MF_LOG_INFO (   category)    mf::LogInfo { category, __FILE__, __LINE__ }

Definition at line 225 of file MessageLogger.h.

#define MF_LOG_PRINT (   category)    mf::LogPrint { category, __FILE__, __LINE__ }

Definition at line 238 of file MessageLogger.h.

#define MF_LOG_PROBLEM (   category)    mf::LogProblem { category, __FILE__, __LINE__ }

Definition at line 240 of file MessageLogger.h.

#define MF_LOG_SYSTEM (   category)    mf::LogSystem { category, __FILE__, __LINE__ }

Definition at line 231 of file MessageLogger.h.

#define MF_LOG_TRACE (   id)    mf::LogTrace { id, __FILE__, __LINE__ }

Definition at line 270 of file MessageLogger.h.

#define MF_LOG_VERBATIM (   category)    mf::LogVerbatim { category, __FILE__, __LINE__ }

Definition at line 236 of file MessageLogger.h.

#define MF_LOG_WARNING (   category)    mf::LogWarning { category, __FILE__, __LINE__ }

Definition at line 227 of file MessageLogger.h.