Pulse adds COVID-19 Simulation Support
×

#include <Logger.h>

Inherited by CommonDataModelTest, DataTrack, PulseController, PulseEngineTest [private], SaturationCalculator, SEAction, SEActionManager, SEActiveConditioning, SEAnesthesiaMachineActionCollection, SEAnesthesiaMachineChamber [private], SEAnesthesiaMachineOxygenBottle [private], SEAppliedTemperature, SEAutoSerialization, SECircuit< CIRCUIT_TEMPLATE >, SECircuit< SEElectricalCircuitNode, SEElectricalCircuitPath >, SECircuit< SEFluidCircuitNode, SEFluidCircuitPath >, SECircuit< SEThermalCircuitNode, SEThermalCircuitPath >, SECircuitCalculator< CIRCUIT_CALCULATOR_TEMPLATE >, SECircuitCalculator< SEElectricalCircuit, SEElectricalCircuitNode, SEElectricalCircuitPath, ElectricCapacitanceUnit, ElectricCurrentUnit, ElectricInductanceUnit, ElectricPotentialUnit, ElectricChargeUnit, ElectricResistanceUnit >, SECircuitCalculator< SEFluidCircuit, SEFluidCircuitNode, SEFluidCircuitPath, VolumePerPressureUnit, VolumePerTimeUnit, PressureTimeSquaredPerVolumeUnit, PressureUnit, VolumeUnit, PressureTimePerVolumeUnit >, SECircuitCalculator< SEThermalCircuit, SEThermalCircuitNode, SEThermalCircuitPath, HeatCapacitanceUnit, PowerUnit, HeatInductanceUnit, TemperatureUnit, EnergyUnit, HeatResistanceUnit >, SECircuitManager, SECircuitNode< CIRCUIT_NODE_TEMPLATE >, SECircuitNode< CIRCUIT_NODE_TYPES >, SECircuitNode< FLUID_CIRCUIT_NODE >, SECircuitNode< SEScalarElectricPotential, SEScalarElectricCharge >, SECircuitNode< THERMAL_CIRCUIT_NODE >, SECircuitPath< CIRCUIT_PATH_TEMPLATE >, SECircuitPath< ELECTRICAL_CIRCUIT_PATH >, SECircuitPath< FLUID_CIRCUIT_PATH >, SECircuitPath< THERMAL_CIRCUIT_PATH >, SECompartment, SECompartmentGraph< COMPARTMENT_GRAPH_TEMPLATE >, SECompartmentGraph< COMPARTMENT_GRAPH_TYPES >, SECompartmentGraph< SEThermalCompartment, SEThermalCompartmentLink >, SECompartmentLink, SECompartmentManager, SECompartmentNodes< COMPARTMENT_NODE_TEMPLATE >, SECompartmentNodes< FLUID_COMPARTMENT_NODE >, SECompartmentNodes< THERMAL_COMPARTMENT_NODE >, SECondition, SEConditionManager, SEDataRequestManager, SEDynamicStabilizationEngineConvergence, SEDynamicStabilizationLedger, SEDynamicStabilizationPropertyConvergence, SEElectroCardioGramWaveform, SEElectroCardioGramWaveformInterpolator, SEEngineConfiguration, SEEngineStabilization, SEEngineTracker, SEEnvironmentActionCollection, SEEnvironmentalConditions, SEEventManager, SEGenericScalar, SEInhalerActionCollection, SENutrition, SEPatient, SEPatientActionCollection, SEPatientAssessment, SEPatientConfiguration, SEScenario, SEScenarioExec, SESubstance, SESubstanceAerosolization, SESubstanceClearance, SESubstanceCompound, SESubstanceConcentration, SESubstanceFraction, SESubstanceManager, SESubstancePharmacodynamics [private], SESubstancePharmacokinetics, SESubstancePhysicochemicals, SESubstanceQuantity, SESubstanceTissuePharmacokinetics, SESubstanceTransporter< SUBSTANCE_TRANSPORTER_TEMPLATE >, SESubstanceTransporter< SEGasTransportGraph, VolumePerTimeUnit, VolumeUnit, VolumeUnit, NoUnit >, SESubstanceTransporter< SELiquidTransportGraph, VolumePerTimeUnit, VolumeUnit, MassUnit, MassPerVolumeUnit >, SESystem, SETestCase, SETestErrorStatistics, SETestReport, SETestSuite, SEUrinalysisMicroscopic, and TimingProfile.

Public Member Functions

 Loggable (Logger *logger=nullptr)
 
 Loggable (std::string const &logfile)
 
virtual ~Loggable ()
 
virtual LoggerGetLogger () const
 
virtual void SetLogger (Logger &logger)
 
virtual void Debug (std::string const &msg, std::string const &origin=empty) const
 
virtual void Debug (std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Debug (std::ostream &msg, std::string const &origin=empty) const
 
virtual void Info (std::string const &msg, std::string const &origin=empty) const
 
virtual void Info (std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Info (const std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Info (std::ostream &msg, std::string const &origin=empty) const
 
virtual void Warning (std::string const &msg, std::string const &origin=empty) const
 
virtual void Warning (std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Warning (std::ostream &msg, std::string const &origin=empty) const
 
virtual void Error (std::string const &msg, std::string const &origin=empty) const
 
virtual void Error (std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Error (std::ostream &msg, std::string const &origin=empty) const
 
virtual void Fatal (std::string const &msg, std::string const &origin=empty) const
 
virtual void Fatal (std::stringstream &msg, std::string const &origin=empty) const
 
virtual void Fatal (std::ostream &msg, std::string const &origin=empty) const
 

Static Public Attributes

static const std::string empty
 

Protected Attributes

bool myLogger
 
Loggerm_Logger
 

Constructor & Destructor Documentation

◆ Loggable() [1/2]

Loggable::Loggable ( Logger logger = nullptr)

◆ Loggable() [2/2]

Loggable::Loggable ( std::string const &  logfile)

◆ ~Loggable()

Loggable::~Loggable ( )
virtual

Member Function Documentation

◆ Debug() [1/3]

void Loggable::Debug ( std::string const &  msg,
std::string const &  origin = empty 
) const
virtual

◆ Debug() [2/3]

void Loggable::Debug ( std::stringstream &  msg,
std::string const &  origin = empty 
) const
virtual

◆ Debug() [3/3]

void Loggable::Debug ( std::ostream &  msg,
std::string const &  origin = empty 
) const
virtual

◆ Error() [1/3]

void Loggable::Error ( std::string const &  msg,
std::string const &  origin = empty 
) const
virtual

◆ Error() [2/3]

void Loggable::Error ( std::stringstream &  msg,
std::string const &  origin = empty 
) const
virtual

◆ Error() [3/3]

void Loggable::Error ( std::ostream &  msg,
std::string const &  origin = empty 
) const
virtual

◆ Fatal() [1/3]

void Loggable::Fatal ( std::string const &  msg,
std::string const &  origin = empty 
) const
virtual

◆ Fatal() [2/3]

void Loggable::Fatal ( std::stringstream &  msg,
std::string const &  origin = empty 
) const
virtual

◆ Fatal() [3/3]

void Loggable::Fatal ( std::ostream &  msg,
std::string const &  origin = empty 
) const
virtual

◆ GetLogger()

Logger * Loggable::GetLogger ( ) const
virtual

Reimplemented in PulseEngine.

◆ Info() [1/4]

void Loggable::Info ( std::string const &  msg,
std::string const &  origin = empty 
) const
virtual

◆ Info() [2/4]

void Loggable::Info ( std::stringstream &  msg,
std::string const &  origin = empty 
) const
virtual

◆ Info() [3/4]

void Loggable::Info ( const std::stringstream &  msg,
std::string const &  origin = empty 
) const
virtual

◆ Info() [4/4]

void Loggable::Info ( std::ostream &  msg,
std::string const &  origin = empty 
) const
virtual

◆ SetLogger()

void Loggable::SetLogger ( Logger logger)
virtual

◆ Warning() [1/3]

void Loggable::Warning ( std::string const &  msg,
std::string const &  origin = empty 
) const
virtual

◆ Warning() [2/3]

void Loggable::Warning ( std::stringstream &  msg,
std::string const &  origin = empty 
) const
virtual

◆ Warning() [3/3]

void Loggable::Warning ( std::ostream &  msg,
std::string const &  origin = empty 
) const
virtual

Member Data Documentation

◆ empty

const std::string Loggable::empty
static

◆ m_Logger

Logger* Loggable::m_Logger
protected

◆ myLogger

bool Loggable::myLogger
protected

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.