#include <Logger.h>

Inherited by SEBlackBox< ELECTRICAL_BLACK_BOX >, SEBlackBox< FLUID_BLACK_BOX >, SEBlackBox< THERMAL_BLACK_BOX >, SECircuit< SEElectricalCircuitNode, SEElectricalCircuitPath >, SECircuit< SEFluidCircuitNode, SEFluidCircuitPath >, SECircuit< SEThermalCircuitNode, SEThermalCircuitPath >, SECircuitNode< ELECTRICAL_CIRCUIT_NODE >, SECircuitNode< CIRCUIT_NODE_TYPES >, SECircuitNode< FLUID_CIRCUIT_NODE >, SECircuitNode< THERMAL_CIRCUIT_NODE >, SECircuitPath< ELECTRICAL_CIRCUIT_PATH >, SECircuitPath< FLUID_CIRCUIT_PATH >, SECircuitPath< THERMAL_CIRCUIT_PATH >, SECompartmentGraph< COMPARTMENT_GRAPH_TYPES >, SECompartmentGraph< SEElectricalCompartment, SEElectricalCompartmentLink >, SECompartmentGraph< SEThermalCompartment, SEThermalCompartmentLink >, SECompartmentNodes< FLUID_COMPARTMENT_NODE >, SECompartmentNodes< ELECTRICAL_COMPARTMENT_NODE >, SECompartmentNodes< THERMAL_COMPARTMENT_NODE >, DataTrack, PhysiologyEngine, SEAction, SEActionManager, SEActiveConditioning, SEAnesthesiaMachineChamber [private], SEAnesthesiaMachineOxygenBottle [private], SEAppliedTemperature, SEBlackBox< BLACK_BOX_TEMPLATE >, SEBlackBoxManager, SECardiovascularMechanicsModifiers, SECircuit< CIRCUIT_TEMPLATE >, SECircuitCalculator< CIRCUIT_CALCULATOR_TEMPLATE >, SECircuitManager, SECircuitNode< CIRCUIT_NODE_TEMPLATE >, SECircuitPath< CIRCUIT_PATH_TEMPLATE >, SECompartment, SECompartmentGraph< COMPARTMENT_GRAPH_TEMPLATE >, SECompartmentLink, SECompartmentManager, SECompartmentNodes< COMPARTMENT_NODE_TEMPLATE >, SECondition, SEConditionManager, SEConsciousRespirationCommand, SECurve, SEDataRequestManager, SEDynamicStabilizationEngineConvergence, SEDynamicStabilizationLedger, SEDynamicStabilizationPropertyConvergence, SEECMOSettings, SEElectroCardioGramWaveform, SEEngineConfiguration, SEEngineInitialization, SEEngineStabilization, SEEngineTracker, SEEnvironmentActionCollection, SEEnvironmentalConditions, SEEquipmentActionCollection, SEEventManager, SEGenericScalar, SEMechanicalVentilatorSettings, SENutrition, SEPatient, SEPatientActionCollection, SEPatientAssessment, SEPatientConfiguration, SEPhysiologyEnginePool, SEPhysiologyEnginePoolEngine, SEPupillaryResponse, SERespiratoryMechanics, SERespiratoryMechanicsModifiers, SEScenario, SEScenarioExec, SEScenarioLog, SESubstance, SESubstanceAerosolization, SESubstanceClearance, SESubstanceCompound, SESubstanceConcentration, SESubstanceFraction, SESubstanceManager, SESubstancePharmacodynamics [private], SESubstancePharmacokinetics, SESubstancePhysicochemicals, SESubstanceQuantity, SESubstanceTissuePharmacokinetics, SESubstanceTransporter< SUBSTANCE_TRANSPORTER_TEMPLATE >, SESystem, SETestCase, SETestErrorStatistics, SETestManager, SETestReport, SETestSuite, SEUrinalysisMicroscopic, and SEValidationTarget.

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) const
 
virtual void Debug (std::stringstream &msg) const
 
virtual void Debug (std::ostream &msg) const
 
virtual void Info (std::string const &msg) const
 
virtual void Info (std::stringstream &msg) const
 
virtual void Info (const std::stringstream &msg) const
 
virtual void Info (std::ostream &msg) const
 
virtual void Warning (std::string const &msg) const
 
virtual void Warning (std::stringstream &msg) const
 
virtual void Warning (std::ostream &msg) const
 
virtual void Error (std::string const &msg) const
 
virtual void Error (std::stringstream &msg) const
 
virtual void Error (std::ostream &msg) const
 
virtual void Fatal (std::string const &msg) const
 
virtual void Fatal (std::stringstream &msg) const
 
virtual void Fatal (std::ostream &msg) const
 

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::ostream &  msg) const
virtual

◆ Debug() [2/3]

void Loggable::Debug ( std::string const &  msg) const
virtual

◆ Debug() [3/3]

void Loggable::Debug ( std::stringstream &  msg) const
virtual

◆ Error() [1/3]

void Loggable::Error ( std::ostream &  msg) const
virtual

◆ Error() [2/3]

void Loggable::Error ( std::string const &  msg) const
virtual

◆ Error() [3/3]

void Loggable::Error ( std::stringstream &  msg) const
virtual

◆ Fatal() [1/3]

void Loggable::Fatal ( std::ostream &  msg) const
virtual

◆ Fatal() [2/3]

void Loggable::Fatal ( std::string const &  msg) const
virtual

◆ Fatal() [3/3]

void Loggable::Fatal ( std::stringstream &  msg) const
virtual

◆ GetLogger()

Logger * Loggable::GetLogger ( ) const
virtual

◆ Info() [1/4]

void Loggable::Info ( const std::stringstream &  msg) const
virtual

◆ Info() [2/4]

void Loggable::Info ( std::ostream &  msg) const
virtual

◆ Info() [3/4]

void Loggable::Info ( std::string const &  msg) const
virtual

◆ Info() [4/4]

void Loggable::Info ( std::stringstream &  msg) const
virtual

◆ SetLogger()

void Loggable::SetLogger ( Logger logger)
virtual

◆ Warning() [1/3]

void Loggable::Warning ( std::ostream &  msg) const
virtual

◆ Warning() [2/3]

void Loggable::Warning ( std::string const &  msg) const
virtual

◆ Warning() [3/3]

void Loggable::Warning ( std::stringstream &  msg) const
virtual

Member Data Documentation

◆ 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.