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 LOG_INFO(category)   mf::LogInfo(category, __FILE__, __LINE__)
 
#define LOG_WARNING(category)   mf::LogWarning(category, __FILE__, __LINE__)
 
#define LOG_ERROR(category)   mf::LogError(category, __FILE__, __LINE__)
 
#define LOG_SYSTEM(category)   mf::LogSystem(category, __FILE__, __LINE__)
 
#define LOG_VERBATIM(category)   mf::LogVerbatim(category, __FILE__, __LINE__)
 
#define LOG_PRINT(category)   mf::LogPrint(category, __FILE__, __LINE__)
 
#define LOG_PROBLEM(category)   mf::LogProblem(category, __FILE__, __LINE__)
 
#define LOG_ABSOLUTE(category)   mf::LogAbsolute(category, __FILE__, __LINE__)
 
#define LOG_DEBUG(id)    mf::LogDebug { id, __FILE__, __LINE__ }
 
#define 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 &, std::string const &applicationName="")
 
void mf::EndMessageFacility ()
 
bool mf::isMessageProcessingSetUp ()
 
void mf::LogErrorObj (ErrorObj *)
 
void mf::LogStatistics ()
 
void mf::FlushMessageLog ()
 
void mf::SetApplicationName (std::string const &)
 
void mf::SetHostName (std::string const &)
 
void mf::SetHostAddr (std::string const &)
 
void mf::SetPid (long)
 
std::string const & mf::GetApplicationName ()
 
std::string const & mf::GetHostName ()
 
std::string const & mf::GetHostAddr ()
 
long mf::GetPid ()
 
void mf::SetContextIteration (std::string const &)
 
void mf::SetIteration (std::string const &)
 
std::string const & mf::GetIteration ()
 
void mf::SetContextSinglet (std::string const &)
 
void mf::SetModuleName (std::string const &)
 
std::string const & mf::GetModuleName ()
 
bool mf::isDebugEnabled ()
 
bool mf::isInfoEnabled ()
 
bool mf::isWarningEnabled ()
 

Macro Definition Documentation

#define LOG_ABSOLUTE (   category)    mf::LogAbsolute(category, __FILE__, __LINE__)

Definition at line 240 of file MessageLogger.h.

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

Definition at line 265 of file MessageLogger.h.

#define LOG_ERROR (   category)    mf::LogError(category, __FILE__, __LINE__)

Definition at line 232 of file MessageLogger.h.

#define LOG_INFO (   category)    mf::LogInfo(category, __FILE__, __LINE__)

Definition at line 230 of file MessageLogger.h.

#define LOG_PRINT (   category)    mf::LogPrint(category, __FILE__, __LINE__)

Definition at line 238 of file MessageLogger.h.

#define LOG_PROBLEM (   category)    mf::LogProblem(category, __FILE__, __LINE__)

Definition at line 239 of file MessageLogger.h.

#define LOG_SYSTEM (   category)    mf::LogSystem(category, __FILE__, __LINE__)

Definition at line 233 of file MessageLogger.h.

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

Definition at line 267 of file MessageLogger.h.

#define LOG_VERBATIM (   category)    mf::LogVerbatim(category, __FILE__, __LINE__)

Definition at line 237 of file MessageLogger.h.

Referenced by fnex::EventListManipulator::AddFakeDataToEventList(), fnex::ContourMaker::AddPointToMap(), fnex::StarPlot::AddPointToMap(), calib::ThresholdAna::analyze(), fnex::CalibSystHistMaker::analyze(), validation::NoiseClusterAnalysis::analyze(), fnex::AnalyzeWeighters::analyze(), skim::SkimmerAna::analyze(), fnex::ReadCAFMakeEventList::analyze(), fnex::Correlations::ApplyCorrelations(), fnex::SortEventLists::beginJob(), cmf::RandomUniverses::beginJob(), calib::ThresholdAna::beginRun(), calib::MakeAttenuationProfiles::beginRun(), calib::DriftCorrection::beginRun(), calib::AttenuationFit::beginRun(), skim::RandomEventFilter::beginSubRun(), fnex::BeamSyst::CalcBeamSystWeights(), fnex::GeniePCASyst::CalcGeniePCASystWeights(), fnex::ShifterAndWeighter::CalcNearTrueEnergyRatioWeights(), fnex::EventListManipulator::CheckDataMCListConsistency(), cmf::ChiSqrCalculator::ChiSqrCalculator(), skim::ParametersNumuCCpi::Compare(), skim::ParametersNue::Compare(), g4n::G4Alg::ConfigUserActionManager(), calib::AttenuationFit::ConsolidateViews(), cmf::ContourFromLibrary::ContourForUniverse(), fnex::CovarianceMatrixFitter::ConvertPointToVectors(), fnex::EventListManipulator::Cosmics2018(), cmf::ContourFromLibrary::CreateChiSqrMaps(), cmf::RandomUniverseUtility::CreateLocationWithVariedSystematics(), fnex::MultiExperiment::CreateNuisanceParameterExperiments(), fnex::EventListManipulator::Deserialize(), cmf::EventListManipulator::Deserialize(), fnex::MultiExperiment::DrawParallelPlots(), fnex::EventListMaker::endJob(), cmf::ContourFromLibrary::endJob(), air::AirKalmanAna::endJob(), skim::CellHitSkimmer::endJob(), fnex::CAFToEventList::endJob(), cmf::CAFToEventList::endJob(), trk::CosmicTrackAna::endJob(), calib::SumRunsCalib::endRun(), skim::CellHitSkimmer::endRun(), fnex::EventListMaker::endSubRun(), calib::AttenuationFit::expFit(), cmf::CovarianceMatrixFitter::FillDataSpectrum(), fnex::EventListManipulator::FillEventList(), trk::CosmicTrackAna::FillEventMCTruthHistograms(), skim::SkimmerAna::FillNumuHistograms(), skim::CosmicBeamComparison::FillNumuHistograms(), fnex::ReadCAFMakeEventList::FillSpillInformation(), fnex::CAFToEventList::FillVariables(), fnex::NuEAnalysisSetup::FillVars(), cmf::CovarianceFitHelper::FindInitialGuess(), cmf::SpectrumPredictionMaker::FindOscillationPoints(), fnex::CAFToEventList::FindPOTPerPeriod(), cmf::CAFToEventList::FindPOTPerPeriod(), fnex::FitAlg_ROOTFactoryFit::Fit(), calib::AttenuationFit::fit_channel_prof(), fnex::FitFunction_ForROOT(), cmf::FitFunction_ForROOT(), fnex::MultiExperiment::FitValue(), fnex::EventListManipulator::FixNearDetMCExposures(), fnex::NuMuAnalysisSetup::FourthAnalysisQuantileRHC(), fnex::CorrSpec_MichelDecomp::GenerateSpectrumList(), fnex::CorrSpec_NoExtrapNuE::GenerateSpectrumList(), fnex::CorrSpec_PropDecomp::GenerateSpectrumList(), fnex::CorrSpec_BENDecomp::GenerateSpectrumList(), fnex::MCVarVals::GENIEWgts(), skim::ParametersNumu::GetDetectorEdges(), calib::AttenuationFit::GetView(), cmf::CovarianceBinUtility::Initialize(), cmf::ParameterUtility::Initialize(), cmf::PlotUtilities::Initialize(), cmf::SpectrumPredictionMaker::Initialize(), cmf::SelectionUtility::Initialize(), cmf::ChiSqrCalculator::InitializeCovarianceMatrix(), fnex::EventListMaker::InitializeEventListMaps(), cmf::CovarianceFitHelper::InitializeGlobalVars(), fnex::FitAlg_ROOTFactoryFit::InitializeMinimizer(), fnex::CovarianceMatrixFitter::InitializeMinimizer(), cmf::CovarianceFitHelper::InitializeMinimizer(), skim::SelectionNumuSA::KeepNumuFarDetectorSlice(), skim::SelectionNumuSA::KeepNumuNearDetectorSlice(), fnex::CalibSyst::Load2018CalibSystHists(), fnex::CalibSyst::LoadCalibSystHists(), cmf::CalibSyst::LoadCalibSystRatios(), calib::AttenCache::LoadFromDatabase(), cmf::PlotUtilities::Make2DHiddenParHistogram(), fnex::ContourMaker::Make2DHist(), fnex::ContourMaker::Make2DSystematicHists(), fnex::CorrSpec_MichelDecomp::MakeCorrectedHistograms(), fnex::CorrSpec_NoExtrapNuE::MakeCorrectedHistograms(), fnex::CorrSpec_PropDecomp::MakeCorrectedHistograms(), fnex::CorrSpec_NoExtrapNuMu::MakeCorrectedHistograms(), fnex::CorrSpec_SimpleExtrap::MakeCorrectedHistograms(), fnex::CorrSpec_SimpleNuMuExtrap::MakeCorrectedHistograms(), fnex::CorrSpec_BENDecomp::MakeCorrectedHistograms(), cmf::PlotUtilities::MakeEnergySpectraFromBins(), cmf::SpectrumPredictionMaker::MakePredictions(), cmf::PlotUtilities::MakeSpectrumHistogram(), fnex::StarPlot::MakeStarPlot(), fnex::StarPlot::MakeTable(), cmf::CovarianceFitHelper::Minimize(), cmf::CovarianceFitHelper::MinimizeCP(), fnex::SensitivityPointsMaker::MultiExperimentChiSqrForInputPoint(), skim::SelectionNumuSA::PassesSelection(), calib::PathLengthInCell(), fnex::ReadFitResults::plotResults(), cmf::EventListManipulator::PrintExposureSummary(), skim::ParametersNumu::ProjectDistToEdge(), fnex::CompareFNEXCAFEventListFiles::ReadCAFDataTextFile(), fnex::CompareFNEXCAFEventListFiles::ReadCAFMCTextFile(), fnex::ReadCAFMakeEventList::ReadCAFTree(), fnex::CalibSystHistMaker::ReadEventListTree(), cmf::CombineResults::ReadFakeUniverses(), fnex::CompareFNEXCAFEventListFiles::ReadFNEXTree_FillEventListMap(), cmf::CombineResults::ReadOscParamPoints(), cmf::CombineResults::ReadPointResults(), calib::SumAttenuationProfiles::readResults(), cmf::CovarianceMatrixFitter::readResults(), fnex::SensitivityPointsMaker::readResults(), fnex::ContourMaker::readResults(), fnex::StarPlot::readResults(), fnex::ReadFitResults::readResults(), cmf::FitFeldmanCousinsPoint::readResults(), cmf::ContourFromLibrary::readResults(), fnex::StarPlot::readSingleResults(), calib::SumAttenuationProfiles::reconfigure(), calib::ThresholdAna::reconfigure(), fnex::MultiExperiment::Reconfigure(), fnex::CalibSystHistMaker::reconfigure(), calib::MakeAttenuationProfiles::reconfigure(), fnex::EventListManipulator::reconfigure(), fnex::ReadFitResults::reconfigure(), calib::AttenuationFit::reconfigure(), cmf::EventListManipulator::reconfigure(), skim::CellHitSkimmer::reconfigure(), fnex::ReadCAFMakeEventList::reconfigure(), fnex::CompareFNEXCAFEventListFiles::reconfigure(), cmf::ShifterAndWeighter::ReportCurrentVals(), rwgt::MCReweight::Reset(), calib::DriftCorrection::respondToCloseOutputFiles(), fnex::EventListMaker::Serialize(), fnex::ReadCAFMakeEventList::Serialize(), fnex::FitAlg_ROOTFactoryFit::SetConstraints(), fnex::CovarianceMatrixFitter::SetFinalFitValues(), skim::NumuCCpiSkimmer::Skim(), skim::NumuSkimmer::Skim(), skim::NueSkimmer::Skim(), skim::SkimmingUtils::SliceMCTruthAssociation(), fnex::CorrSpec_NoExtrapNuMu::UpdateCorrectedHistograms(), fnex::CorrSpec_SimpleNuMuExtrap::UpdateCorrectedHistograms(), fnex::CorrSpec_PropDecomp::UpdateCorrectedHistograms(), fnex::CorrSpec_SimpleExtrap::UpdateCorrectedHistograms(), fnex::CorrSpec_MichelDecomp::UpdateCorrectedHistograms(), fnex::CorrSpec_NoExtrapNuE::UpdateCorrectedHistograms(), fnex::CorrSpec_BENDecomp::UpdateCorrectedHistograms(), fnex::EventListManipulator::UseEventsFromMetaData(), cmf::VarNameToKey(), skim::POTSummary::writeResults(), calib::SumAttenuationProfiles::writeResults(), fnex::PlotPoint::writeResults(), fnex::FitPoint::writeResults(), cmf::CovarianceMatrixFitter::writeResults(), fnex::CovarianceMatrixMaker::writeResults(), fnex::SensitivityPointsMaker::writeResults(), cmf::CovarianceMatrixMaker::writeResults(), fnex::CovarianceMatrixFitter::writeResults(), cmf::CMFDecorrelator::writeResults(), cmf::RandomUniverses::writeResults(), cmf::FitFeldmanCousinsPoint::writeResults(), and calib::AttenuationFit::writeResults().

#define LOG_WARNING (   category)    mf::LogWarning(category, __FILE__, __LINE__)

Definition at line 231 of file MessageLogger.h.

Referenced by fnex::EventListMaker::analyze(), fnex::SortEventLists::beginJob(), comi::NearlineAna::beginRun(), cmf::BeamSyst::CalcBeamSystWeights(), fnex::BeamSyst::CalcBeamSystWeights(), fnex::CalibSyst::CalcCalibSystWeights(), fnex::GeniePCASyst::CalcGeniePCASystWeights(), cmf::ShifterAndWeighter::CalcLinearInterpWgt(), fnex::ShifterAndWeighter::CalcLinearInterpWgt(), cmf::CalibSyst::CalibSystRatio(), fnex::NuisanceParameters::CentralValue(), skim::SkimmingUtils::CopySlice(), fnex::EventListManipulator::Cosmics2017(), fnex::EventListManipulator::Cosmics2018(), fnex::EventListManipulator::CreateFarDetCosmicBackgroundsFromHist(), nova::dbi::RunHistory::DetGainSetting(), fnex::EventListMaker::endJob(), fnex::CAFToEventList::endJob(), cmf::CAFToEventList::endJob(), fnex::EventListMaker::endSubRun(), fnex::EventListManipulator::FarDetCosmicBackgroundHistAndScale(), trk::CosmicTrackAna::FilldEdxHistogram(), fnex::EventListManipulator::FillEventList(), cmf::EventListManipulator::FillEventList(), fnex::AnalysisSetupBase::FillGENIEWeightVars(), calib::CosmicTrends::FillHistograms(), skim::SkimmerAna::FillNueHistograms(), skim::CosmicBeamComparison::FillNueHistograms(), skim::SkimmerAna::FillNumuHistograms(), skim::CosmicBeamComparison::FillNumuHistograms(), trk::CosmicTrackAna::FillTrackHistograms(), fnex::AnalysisSetupBase::FillTruthVars(), fnex::NuMuAnalysisSetup::FillVars(), fnex::NuEAnalysisSetup::FillVars(), EliminateBeamSpills::filter(), nova::dbi::RunHistory::GoodDiBlockMask(), skim::EvaluatorNumuCCpi::Initialize(), skim::EvaluatorNumu::Initialize(), skim::EvaluatorNue::Initialize(), cmf::ShifterAndWeighter::InitShiftsAndWeightsForDetector(), fnex::ShifterAndWeighter::InitShiftsAndWeightsToUse(), fnex::InputPoint::InputPoint(), fnex::NuisanceParameters::InsertParameter(), chaninfo::BadChanList::IsBadUncached(), nova::dbi::RunHistory::IsGoodDiBlock(), nova::dbi::RunHistory::LoadAPDSettings(), cmf::BeamSyst::LoadBeamSystHists(), fnex::BeamSyst::LoadBeamSystHists(), cmf::CalibSyst::LoadCalibSystRatios(), nova::dbi::RunHistory::LoadFEBMasks(), nova::dbi::RunHistory::LoadGoodDiBlockMask(), chaninfo::BadChanList::LoadNewData(), nova::dbi::RunHistory::LoadPedestals(), nova::dbi::RunHistory::LoadPixelMasks(), fnex::EventListManipulator::LoadVarVals(), trk::WindowTrackingAlg::Make3DTrack(), cmf::CovarianceFitHelper::Minimize(), cmf::CovarianceFitHelper::MinimizeCP(), cmf::ShifterAndWeighter::NueAcceptSignalKin2018Weight(), fnex::ShifterAndWeighter::NueAcceptSignalKin2018Weight(), fnex::ShifterAndWeighter::NueExtrapSig2017Weight(), cmf::OscParamPoint::operator+=(), cmf::ShifterAndWeighter::OscillationCalculatorToUse(), fnex::MetaData::OscType(), cmf::Parameter::Parameter(), fnex::InputPoint::ParameterValue(), nova::dbi::PerformPGQuery(), cmf::PeriodStringToInt(), nova::dbi::RunHistoryService::preBeginRun(), nova::dbi::RunHistoryService::preBeginSubrun(), g4n::ParticleListAction::PreTrackingAction(), calib::PCHitsList::ProcessTrackTrajectory(), cheat::ClusterCheater::produce(), cheat::TrackCheater::produce(), nussand::FillNusSandbox::produce(), calib::SumAttenuationProfiles::readResults(), fnex::ContourMaker::readResults(), fnex::StarPlot::readResults(), fnex::ReadFitResults::readResults(), calib::AttenuationFit::readResults(), fnex::ContourMaker::readSingleResults(), fnex::StarPlot::readSingleResults(), fnex::ReadFitResults::readSingleResults(), fnex::ContourMaker::readVectorResults(), fnex::ReadFitResults::readVectorResults(), fnex::MultiExperiment::Reconfigure(), fnex::MCVarVals::SetGENIEVarVal(), fnex::NuisanceParameters::Sigma(), skim::SkimmingUtils::SliceMCTruthAssociation(), trk::CosmicTrackUtilities::TruePathLengthInCell(), fnex::NuisanceParameters::Variance(), and calib::AttenuationFit::writeResults().