API
flatlogs::logPrio Namespace Reference

The log priority codes. These control if logs are stored on disk and how they are presented to users. More...

Variables

constexpr static logPrioT LOG_EMERGENCY = 0
 Normal operations of the entire system should be shut down immediately. More...
 
constexpr static logPrioT LOG_ALERT = 1
 This should only be used if some action is required by operators to keep the system safe. More...
 
constexpr static logPrioT LOG_CRITICAL = 2
 The process can not continue and will shut down (fatal) More...
 
constexpr static logPrioT LOG_ERROR = 3
 An error has occured which the software will attempt to correct. More...
 
constexpr static logPrioT LOG_WARNING = 4
 A condition has occurred which may become an error, but the process continues. More...
 
constexpr static logPrioT LOG_NOTICE = 5
 A normal but significant condition. More...
 
constexpr static logPrioT LOG_INFO = 6
 Informational. The info log level is the lowest level recorded during normal operations. More...
 
constexpr static logPrioT LOG_DEBUG = 7
 Used for debugging. More...
 
constexpr static logPrioT LOG_DEBUG2 = 8
 Used for debugging, providing a 2nd level. More...
 
constexpr static logPrioT LOG_TELEM = 64
 A telemetry recording. More...
 
constexpr static logPrioT LOG_DEFAULT = std::numeric_limits<logPrioT>::max() - 1
 Used to denote "use the default level for this log type". More...
 
constexpr static logPrioT LOG_UNKNOWN = std::numeric_limits<logPrioT>::max()
 Used to denote an unkown log type for internal error handling. More...
 

Detailed Description

The log priority codes. These control if logs are stored on disk and how they are presented to users.

This is a scoping namespace for log priority codes. We do not use the enum class feature since it does not have automatic integer conversion.

Variable Documentation

◆ LOG_ALERT

constexpr static logPrioT flatlogs::logPrio::LOG_ALERT = 1
staticconstexpr

◆ LOG_CRITICAL

constexpr static logPrioT flatlogs::logPrio::LOG_CRITICAL = 2
staticconstexpr

The process can not continue and will shut down (fatal)

Definition at line 37 of file logPriority.hpp.

Referenced by MagAOX::app::acesxeCtrl::appLogic(), MagAOX::app::dmMode::appLogic(), MagAOX::app::dmSpeckle::appLogic(), MagAOX::app::filterWheelCtrl::appLogic(), MagAOX::app::hsfwCtrl::appLogic(), MagAOX::app::picoMotorCtrl::appLogic(), MagAOX::app::siglentSDG::appLogic(), MagAOX::app::smc100ccCtrl::appLogic(), MagAOX::app::sparkleClock::appLogic(), MagAOX::app::trippLitePDU::appLogic(), MagAOX::app::xindiserver::appLogic(), MagAOX::app::xt1121DCDU::appLogic(), MagAOX::app::zaberLowLevel::appLogic(), MagAOX::app::acronameUsbHub::appStartup(), MagAOX::app::filterWheelCtrl::appStartup(), MagAOX::app::hsfwCtrl::appStartup(), MagAOX::app::koolanceCtrl::appStartup(), MagAOX::app::pi335Ctrl::appStartup(), MagAOX::app::smc100ccCtrl::appStartup(), MagAOX::app::trippLitePDU::appStartup(), MagAOX::app::xt1121DCDU::appStartup(), MagAOX::app::zaberCtrl::appStartup(), MagAOX::app::zaberLowLevel::appStartup(), MagAOX::app::MagAOXApp< _useINDI >::checkConfig(), MagAOX::app::MagAOXApp< _useINDI >::createINDIFIFOS(), MagAOX::app::MagAOXApp< _useINDI >::loadBasicConfig(), MagAOX::app::observerCtrl::loadConfig(), MagAOX::app::picoMotorCtrl::loadConfig(), MagAOX::app::pvcamCtrl::loadConfig(), MagAOX::app::streamWriter::loadConfig(), MagAOX::app::dev::stdCamera< derivedT >::loadConfig(), MagAOX::app::cacaoInterface::loadConfigImpl(), MagAOX::app::dmMode::loadConfigImpl(), MagAOX::app::indiTSAccumulator::loadConfigImpl(), MagAOX::app::observerCtrl::loadConfigImpl(), MagAOX::app::picoMotorCtrl::loadConfigImpl(), MagAOX::app::pvcamCtrl::loadConfigImpl(), MagAOX::app::sshDigger::loadConfigImpl(), MagAOX::app::usbtempMon::loadConfigImpl(), MagAOX::app::userGainCtrl::loadConfigImpl(), MagAOX::app::MagAOXApp< _useINDI >::lockPID(), flatlogs::logLevelFromString(), logdump::printLogBuff(), flatlogs::priorityString(), MagAOX::app::xindiserver::processISLog(), MagAOX::app::MagAOXApp< _useINDI >::state(), MagAOX::app::pi335Ctrl::testConnection(), and MagAOX::app::magAOXMaths::updateVals().

◆ LOG_DEBUG

◆ LOG_DEBUG2

constexpr static logPrioT flatlogs::logPrio::LOG_DEBUG2 = 8
staticconstexpr

Used for debugging, providing a 2nd level.

Definition at line 55 of file logPriority.hpp.

Referenced by flatlogs::logLevelFromString(), flatlogs::priorityString(), and MagAOX::app::zaberStage< parentT >::sendCommand().

◆ LOG_DEFAULT

constexpr static logPrioT flatlogs::logPrio::LOG_DEFAULT = std::numeric_limits<logPrioT>::max() - 1
staticconstexpr

◆ LOG_EMERGENCY

◆ LOG_ERROR

constexpr static logPrioT flatlogs::logPrio::LOG_ERROR = 3
staticconstexpr

An error has occured which the software will attempt to correct.

Definition at line 40 of file logPriority.hpp.

Referenced by MagAOX::app::ocam2KCtrl::acquireAndCheckValid(), MagAOX::app::pupilAlign::allocate(), MagAOX::app::pupilFit::allocate(), MagAOX::app::acronameUsbHub::appLogic(), MagAOX::app::cacaoInterface::appLogic(), MagAOX::app::tcsInterface::appLogic(), MagAOX::app::trippLitePDU::appLogic(), MagAOX::app::ttmModulator::appLogic(), MagAOX::app::dmMode::appStartup(), MagAOX::app::openLoopPSDs::appStartup(), MagAOX::app::w2tcsOffloader::appStartup(), MagAOX::app::andorCtrl::cameraSelect(), MagAOX::app::dev::dm< derivedT, realT >::clearSat(), MagAOX::app::bmcCtrl::commandDM(), MagAOX::app::andorCtrl::configureAcquisition(), MagAOX::app::ocam2KCtrl::configureAcquisition(), MagAOX::app::picamCtrl::configureAcquisition(), MagAOX::app::zaberLowLevel::connect(), MagAOX::app::MagAOXApp< _useINDI >::execute(), MagAOX::app::pi335Ctrl::finishInit(), MagAOX::app::picamCtrl::getAcquisitionState(), MagAOX::app::tcsInterface::getCatData(), MagAOX::app::tcsInterface::getEnvData(), MagAOX::app::tcsInterface::getMagTelStatus(), MagAOX::app::tcsInterface::getTelData(), MagAOX::app::tcsInterface::getTelPos(), MagAOX::app::tcsInterface::getTelTime(), MagAOX::app::tcsInterface::getVaneData(), MagAOX::app::pi335Ctrl::home(), MagAOX::app::pi335Ctrl::home_1(), MagAOX::app::pi335Ctrl::home_2(), MagAOX::app::pi335Ctrl::home_3(), MagAOX::app::INDI_NEWCALLBACK_DEFN(), MagAOX::app::MagAOXApp< _useINDI >::indiTargetUpdate(), MagAOX::app::alpaoCtrl::initDM(), MagAOX::app::bmcCtrl::initDM(), MagAOX::app::irisaoCtrl::initDM(), MagAOX::app::MagAOXApp< _useINDI >::loadBasicConfig(), MagAOX::app::xt1121Ctrl::loadConfig(), MagAOX::app::dev::frameGrabber< derivedT >::loadConfig(), MagAOX::app::dev::outletController< derivedT >::loadConfig(), MagAOX::app::dev::dm< derivedT, realT >::loadFlat(), MagAOX::app::zaberLowLevel::loadStages(), MagAOX::app::dev::dm< derivedT, realT >::loadTest(), flatlogs::logLevelFromString(), MagAOX::app::MagAOXApp< _useINDI >::logMessage(), MagAOX::app::pi335Ctrl::move_1(), MagAOX::app::pi335Ctrl::move_2(), MagAOX::app::pi335Ctrl::move_3(), MagAOX::app::dev::outletController< derivedT >::newCallBack_channels(), MagAOX::app::dev::dm< derivedT, realT >::newCallBack_flats(), MagAOX::app::dev::stdMotionStage< derivedT >::newCallBack_m_indiP_presetName(), MagAOX::app::dev::stdCamera< derivedT >::newCallBack_mode(), MagAOX::app::picoMotorCtrl::newCallBack_presetName(), MagAOX::app::dev::stdCamera< derivedT >::newCallBack_readoutSpeed(), MagAOX::app::dev::dm< derivedT, realT >::newCallBack_tests(), MagAOX::app::dev::stdCamera< derivedT >::newCallBack_vShiftSpeed(), MagAOX::app::zaberLowLevel::onPowerOff(), MagAOX::app::bmcCtrl::parse_calibration_file(), MagAOX::app::dev::edtCamera< derivedT >::pdvConfig(), MagAOX::app::dev::edtCamera< derivedT >::pdvReconfig(), logdump::printLogBuff(), flatlogs::priorityString(), MagAOX::app::sshDigger::processSSHLog(), MagAOX::app::siglentSDG::queryARWV(), MagAOX::app::siglentSDG::queryBSWV(), MagAOX::app::siglentSDG::queryBTWV(), MagAOX::app::siglentSDG::queryMDWV(), MagAOX::app::siglentSDG::queryOUTP(), MagAOX::app::siglentSDG::querySWWV(), MagAOX::app::siglentSDG::querySYNC(), MagAOX::app::bmcCtrl::releaseDM(), MagAOX::app::irisaoCtrl::releaseDM(), MagAOX::app::tcsInterface::sendMagTelCommand(), MagAOX::app::andorCtrl::setCropMode(), MagAOX::app::dev::dm< derivedT, realT >::setFlat(), MagAOX::app::ocam2KCtrl::setTempControl(), MagAOX::app::ocam2KCtrl::setTempSetPt(), MagAOX::app::dev::dm< derivedT, realT >::setTest(), MagAOX::app::MagAOXApp< _useINDI >::state(), MagAOX::app::magAOXMaths::updateVals(), MagAOX::app::picoMotorCtrl::writeChannelCounts(), MagAOX::app::dev::dm< derivedT, realT >::zeroAll(), MagAOX::app::bmcCtrl::zeroDM(), MagAOX::app::irisaoCtrl::zeroDM(), MagAOX::app::dev::dm< derivedT, realT >::zeroFlat(), and MagAOX::app::dev::dm< derivedT, realT >::zeroTest().

◆ LOG_INFO

◆ LOG_NOTICE

constexpr static logPrioT flatlogs::logPrio::LOG_NOTICE = 5
staticconstexpr

A normal but significant condition.

Definition at line 46 of file logPriority.hpp.

Referenced by MagAOX::app::acesxeCtrl::abort(), MagAOX::app::tcsInterface::acquireFromGuider(), MagAOX::app::hoPredCtrl::allocate(), MagAOX::app::nnReconstructor::allocate(), MagAOX::app::shmimIntegrator::allocate(), MagAOX::app::ocam2KCtrl::appLogic(), MagAOX::app::siglentSDG::appLogic(), MagAOX::app::alignLoop::appStartup(), MagAOX::app::closedLoopIndi::appStartup(), MagAOX::app::tcsInterface::appStartup(), MagAOX::app::kcubeCtrl::axis1Disable(), MagAOX::app::kcubeCtrl::axis1Enable(), MagAOX::app::kcubeCtrl::axis2Disable(), MagAOX::app::kcubeCtrl::axis2Enable(), MagAOX::app::zylaCtrl::cameraSelect(), MagAOX::app::siglentSDG::changeAmp(), MagAOX::app::siglentSDG::changeFreq(), MagAOX::app::siglentSDG::changeOfst(), MagAOX::app::siglentSDG::changeOutp(), MagAOX::app::siglentSDG::changePhse(), MagAOX::app::siglentSDG::changeSync(), MagAOX::app::siglentSDG::changeWdth(), MagAOX::app::siglentSDG::changeWvtp(), MagAOX::app::streamWriter::fgThreadExec(), MagAOX::app::shmimIntegrator::findMatchingDark(), MagAOX::app::pi335Ctrl::finishInit(), MagAOX::app::INDI_NEWCALLBACK_DEFN(), MagAOX::app::INDI_SETCALLBACK_DEFN(), MagAOX::app::alpaoCtrl::initDM(), MagAOX::app::bmcCtrl::initDM(), MagAOX::app::irisaoCtrl::initDM(), MagAOX::app::pi335Ctrl::initDM(), flatlogs::logLevelFromString(), MagAOX::app::MagAOXApp< _useINDI >::logMessage(), MagAOX::logger::logManager< _parentT, _logFileT >::logThreadExec(), MagAOX::app::cacaoInterface::loopZero(), MagAOX::app::dmSpeckle::modThreadExec(), MagAOX::app::sparkleClock::modThreadExec(), logdump::printLogBuff(), flatlogs::priorityString(), MagAOX::app::shmimIntegrator::processImage(), MagAOX::app::pupilFit::processImage(), MagAOX::app::alpaoCtrl::releaseDM(), MagAOX::app::bmcCtrl::releaseDM(), MagAOX::app::irisaoCtrl::releaseDM(), MagAOX::app::pi335Ctrl::releaseDM(), MagAOX::app::mzmqClient::reportNotice(), MagAOX::app::mzmqServer::reportNotice(), MagAOX::app::ocam2KCtrl::resetEMProtection(), MagAOX::app::kcubeCtrl::rest(), MagAOX::app::ttmModulator::restTTM(), MagAOX::app::tcsInterface::sendPyrNudge(), MagAOX::app::kcubeCtrl::set(), MagAOX::app::andorCtrl::setEMGain(), MagAOX::app::ocam2KCtrl::setEMGain(), MagAOX::app::picamCtrl::setEMGain(), MagAOX::app::sysMonitor::setlatThreadExec(), MagAOX::app::andorCtrl::setReadoutSpeed(), MagAOX::app::zylaCtrl::setTempControl(), MagAOX::app::ttmModulator::setTTM(), MagAOX::app::dev::shmimMonitor< derivedT, specificT >::smThreadExec(), MagAOX::app::acesxeCtrl::start(), MagAOX::app::acesxeCtrl::stop(), MagAOX::app::MagAOXApp< _useINDI >::threadStart(), MagAOX::app::magAOXMaths::updateVals(), MagAOX::app::acesxeCtrl::windSpeed(), MagAOX::app::t2wOffloader::zero(), and MagAOX::app::dev::dm< derivedT, realT >::zeroAll().

◆ LOG_TELEM

constexpr static logPrioT flatlogs::logPrio::LOG_TELEM = 64
staticconstexpr

◆ LOG_UNKNOWN

constexpr static logPrioT flatlogs::logPrio::LOG_UNKNOWN = std::numeric_limits<logPrioT>::max()
staticconstexpr

Used to denote an unkown log type for internal error handling.

Definition at line 64 of file logPriority.hpp.

Referenced by MagAOX::logger::logManager< _parentT, _logFileT >::loadConfig(), and flatlogs::logLevelFromString().

◆ LOG_WARNING

constexpr static logPrioT flatlogs::logPrio::LOG_WARNING = 4
staticconstexpr

A condition has occurred which may become an error, but the process continues.

Definition at line 43 of file logPriority.hpp.

Referenced by MagAOX::app::MagAOXApp< _useINDI >::MagAOXApp(), MagAOX::app::alpaoCtrl::appLogic(), MagAOX::app::bmcCtrl::appLogic(), MagAOX::app::irisaoCtrl::appLogic(), MagAOX::app::rhusbMon::appLogic(), MagAOX::app::sysMonitor::appLogic(), MagAOX::app::tcsInterface::appLogic(), MagAOX::app::usbtempMon::appLogic(), MagAOX::app::kcubeCtrl::axis1Voltage(), MagAOX::app::kcubeCtrl::axis2Voltage(), MagAOX::app::andorCtrl::cameraSelect(), MagAOX::app::zylaCtrl::cameraSelect(), MagAOX::app::siglentSDG::changeAmp(), MagAOX::app::siglentSDG::changeFreq(), MagAOX::app::siglentSDG::changeOfst(), MagAOX::app::siglentSDG::changePhse(), MagAOX::app::siglentSDG::changeWdth(), MagAOX::app::MagAOXApp< _useINDI >::checkConfig(), MagAOX::app::MagAOXApp< _useINDI >::clearFSMAlert(), MagAOX::app::dev::dm< derivedT, realT >::clearSat(), MagAOX::app::zaberLowLevel::connect(), MagAOX::app::tcsInterface::doFoffload(), MagAOX::app::tcsInterface::doTToffload(), MagAOX::app::streamWriter::fgThreadExec(), MagAOX::app::sysMonitor::findChronyStatus(), MagAOX::app::shmimIntegrator::findMatchingDark(), MagAOX::app::tcsInterface::getCatData(), MagAOX::app::tcsInterface::getEnvData(), MagAOX::app::tcsInterface::getTelData(), MagAOX::app::tcsInterface::getTelPos(), MagAOX::app::tcsInterface::getTelTime(), MagAOX::app::tcsInterface::getVaneData(), MagAOX::app::INDI_NEWCALLBACK_DEFN(), MagAOX::app::INDI_SETCALLBACK_DEFN(), MagAOX::app::dev::dm< derivedT, realT >::intervalSatTrip(), MagAOX::app::sshDigger::loadConfigImpl(), MagAOX::app::zaberLowLevel::loadStages(), flatlogs::logLevelFromString(), MagAOX::app::ttmModulator::modTTM(), MagAOX::app::picoMotorCtrl::newCallBack_picopos(), MagAOX::app::picoMotorCtrl::newCallBack_presetName(), MagAOX::app::dev::stdCamera< derivedT >::newCallBack_roi_fullbin(), logdump::printLogBuff(), flatlogs::priorityString(), MagAOX::app::zaberStage< parentT >::processWarning(), MagAOX::app::modalPSDs::psdThreadExec(), MagAOX::app::mzmqClient::reportWarning(), MagAOX::app::mzmqServer::reportWarning(), MagAOX::app::dmMode::sendCommand(), MagAOX::app::indiTSAccumulator::setCallBack_all(), MagAOX::app::andorCtrl::setEMGain(), MagAOX::app::ocam2KCtrl::setEMGain(), MagAOX::app::picamCtrl::setEMGain(), MagAOX::app::dev::dm< derivedT, realT >::setFlat(), MagAOX::app::dev::dm< derivedT, realT >::setTest(), MagAOX::app::MagAOXApp< _useINDI >::state(), MagAOX::app::trippLitePDU::updateAlarmsAndWarnings(), MagAOX::app::magAOXMaths::updateVals(), MagAOX::app::dev::dm< derivedT, realT >::zeroAll(), MagAOX::app::dev::dm< derivedT, realT >::zeroFlat(), and MagAOX::app::dev::dm< derivedT, realT >::zeroTest().