API

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::xt1121DCDU::appLogic(), MagAOX::app::zaberLowLevel::appLogic(), MagAOX::app::smc100ccCtrl::appLogic(), MagAOX::app::hsfwCtrl::appLogic(), MagAOX::app::dmMode::appLogic(), MagAOX::app::siglentSDG::appLogic(), MagAOX::app::dmModulator::appLogic(), MagAOX::app::trippLitePDU::appLogic(), MagAOX::app::filterWheelCtrl::appLogic(), MagAOX::app::picoMotorCtrl::appLogic(), MagAOX::app::tcsInterface::appLogic(), MagAOX::app::xindiserver::appLogic(), MagAOX::app::acronameUsbHub::appStartup(), MagAOX::app::xt1121DCDU::appStartup(), MagAOX::app::zaberLowLevel::appStartup(), MagAOX::app::pi335Ctrl::appStartup(), MagAOX::app::cacaoInterface::appStartup(), MagAOX::app::koolanceCtrl::appStartup(), MagAOX::app::hsfwCtrl::appStartup(), MagAOX::app::zaberCtrl::appStartup(), MagAOX::app::smc100ccCtrl::appStartup(), MagAOX::app::dev::telemeter< filterWheelCtrl >::appStartup(), MagAOX::app::filterWheelCtrl::appStartup(), MagAOX::app::trippLitePDU::appStartup(), MagAOX::app::MagAOXApp< true >::checkConfig(), MagAOX::app::MagAOXApp< true >::createINDIFIFOS(), MagAOX::app::MagAOXApp< true >::execute(), MagAOX::app::MagAOXApp< true >::loadBasicConfig(), MagAOX::app::observerCtrl::loadConfig(), MagAOX::app::picoMotorCtrl::loadConfig(), MagAOX::app::dev::stdCamera< ocam2KCtrl >::loadConfig(), MagAOX::app::observerCtrl::loadConfigImpl(), MagAOX::app::usbtempMon::loadConfigImpl(), MagAOX::app::sshDigger::loadConfigImpl(), MagAOX::app::picoMotorCtrl::loadConfigImpl(), MagAOX::app::MagAOXApp< true >::lockPID(), flatlogs::logLevelFromString(), logdump::printLogBuff(), flatlogs::priorityString(), MagAOX::app::xindiserver::processISLog(), MagAOX::app::MagAOXApp< true >::state(), 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::sendCommand().

◆ LOG_DEFAULT

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

◆ LOG_EMERGENCY

constexpr static logPrioT flatlogs::logPrio::LOG_EMERGENCY = 0
staticconstexpr

◆ 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::pupilFit::allocate(), MagAOX::app::acronameUsbHub::appLogic(), MagAOX::app::cacaoInterface::appLogic(), MagAOX::app::ttmModulator::appLogic(), MagAOX::app::trippLitePDU::appLogic(), MagAOX::app::tcsInterface::appLogic(), MagAOX::app::w2tcsOffloader::appStartup(), MagAOX::app::dmMode::appStartup(), MagAOX::app::dmModulator::appStartup(), MagAOX::app::andorCtrl::cameraSelect(), MagAOX::app::dev::dm< alpaoCtrl, float >::clearSat(), MagAOX::app::bmcCtrl::commandDM(), MagAOX::app::ocam2KCtrl::configureAcquisition(), MagAOX::app::picamCtrl::configureAcquisition(), MagAOX::app::andorCtrl::configureAcquisition(), MagAOX::app::zaberLowLevel::connect(), MagAOX::app::MagAOXApp< true >::execute(), MagAOX::app::pi335Ctrl::finishInit(), MagAOX::app::tcsInterface::getCatData(), MagAOX::app::tcsInterface::getEnvData(), MagAOX::app::tcsInterface::getMagTelStatus(), MagAOX::app::tcsInterface::getTelData(), MagAOX::app::tcsInterface::getTelPos(), MagAOX::app::tcsInterface::getVaneData(), MagAOX::app::pi335Ctrl::home(), MagAOX::app::pi335Ctrl::home_1(), MagAOX::app::pi335Ctrl::home_2(), MagAOX::app::INDI_NEWCALLBACK_DEFN(), MagAOX::app::MagAOXApp< true >::indiTargetUpdate(), MagAOX::app::alpaoCtrl::initDM(), MagAOX::app::bmcCtrl::initDM(), MagAOX::app::irisaoCtrl::initDM(), MagAOX::app::MagAOXApp< true >::loadBasicConfig(), MagAOX::app::xt1121Ctrl::loadConfig(), MagAOX::app::dev::outletController< trippLitePDU >::loadConfig(), MagAOX::app::dev::frameGrabber< ocam2KCtrl >::loadConfig(), MagAOX::app::dev::dm< alpaoCtrl, float >::loadFlat(), MagAOX::app::dev::dm< alpaoCtrl, float >::loadTest(), flatlogs::logLevelFromString(), MagAOX::app::MagAOXApp< true >::logMessage(), MagAOX::app::pi335Ctrl::move_1(), MagAOX::app::pi335Ctrl::move_2(), MagAOX::app::dev::outletController< trippLitePDU >::newCallBack_channels(), MagAOX::app::dev::dm< alpaoCtrl, float >::newCallBack_flats(), MagAOX::app::dev::stdCamera< ocam2KCtrl >::newCallBack_mode(), MagAOX::app::picoMotorCtrl::newCallBack_presetName(), MagAOX::app::dev::stdMotionStage< filterWheelCtrl >::newCallBack_presetName(), MagAOX::app::dev::stdCamera< ocam2KCtrl >::newCallBack_readoutSpeed(), MagAOX::app::dev::dm< alpaoCtrl, float >::newCallBack_tests(), MagAOX::app::dev::stdCamera< ocam2KCtrl >::newCallBack_vShiftSpeed(), MagAOX::app::zaberLowLevel::onPowerOff(), MagAOX::app::alpaoCtrl::parse_calibration_file(), MagAOX::app::bmcCtrl::parse_calibration_file(), MagAOX::app::dev::edtCamera< ocam2KCtrl >::pdvConfig(), MagAOX::app::dev::edtCamera< ocam2KCtrl >::pdvReconfig(), logdump::printLogBuff(), flatlogs::priorityString(), MagAOX::app::xindiserver::processISLog(), 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::alpaoCtrl::releaseDM(), MagAOX::app::bmcCtrl::releaseDM(), MagAOX::app::irisaoCtrl::releaseDM(), MagAOX::app::tcsInterface::sendMagTelCommand(), MagAOX::app::andorCtrl::setCropMode(), MagAOX::app::dev::dm< alpaoCtrl, float >::setFlat(), MagAOX::app::ocam2KCtrl::setTempControl(), MagAOX::app::ocam2KCtrl::setTempSetPt(), MagAOX::app::dev::dm< alpaoCtrl, float >::setTest(), MagAOX::app::MagAOXApp< true >::state(), MagAOX::app::cacaoInterface::tmuxSendKeys(), MagAOX::app::magAOXMaths::updateVals(), MagAOX::app::picoMotorCtrl::writeChannelCounts(), MagAOX::app::dev::dm< alpaoCtrl, float >::zeroAll(), MagAOX::app::alpaoCtrl::zeroDM(), MagAOX::app::bmcCtrl::zeroDM(), MagAOX::app::irisaoCtrl::zeroDM(), MagAOX::app::dev::dm< alpaoCtrl, float >::zeroFlat(), and MagAOX::app::dev::dm< alpaoCtrl, float >::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::tcsInterface::acquireFromGuider(), MagAOX::app::siglentSDG::appLogic(), MagAOX::app::ocam2KCtrl::appLogic(), 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::changeWvtp(), MagAOX::app::pi335Ctrl::finishInit(), MagAOX::app::INDI_NEWCALLBACK_DEFN(), MagAOX::app::pi335Ctrl::initDM(), MagAOX::app::alpaoCtrl::initDM(), MagAOX::app::bmcCtrl::initDM(), MagAOX::app::irisaoCtrl::initDM(), flatlogs::logLevelFromString(), MagAOX::app::MagAOXApp< true >::logMessage(), MagAOX::logger::logManager< flipperCtrl, logFileRaw >::logThreadExec(), logdump::printLogBuff(), flatlogs::priorityString(), 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::ttmModulator::restTTM(), MagAOX::app::tcsInterface::sendPyrNudge(), MagAOX::app::ocam2KCtrl::setEMGain(), MagAOX::app::picamCtrl::setEMGain(), MagAOX::app::andorCtrl::setEMGain(), MagAOX::app::sysMonitor::setlatThreadExec(), MagAOX::app::andorCtrl::setReadoutSpeed(), MagAOX::app::zylaCtrl::setTempControl(), MagAOX::app::ttmModulator::setTTM(), MagAOX::app::dev::shmimMonitor< t2wOffloader >::smThreadExec(), MagAOX::app::magAOXMaths::updateVals(), MagAOX::app::t2wOffloader::zero(), and MagAOX::app::dev::dm< alpaoCtrl, float >::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< flipperCtrl, logFileRaw >::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::alpaoCtrl::appLogic(), MagAOX::app::sysMonitor::appLogic(), MagAOX::app::rhusbMon::appLogic(), MagAOX::app::bmcCtrl::appLogic(), MagAOX::app::usbtempMon::appLogic(), MagAOX::app::irisaoCtrl::appLogic(), MagAOX::app::trippLitePDU::appLogic(), MagAOX::app::zylaCtrl::cameraSelect(), MagAOX::app::andorCtrl::cameraSelect(), MagAOX::app::siglentSDG::changeAmp(), MagAOX::app::siglentSDG::changeFreq(), MagAOX::app::siglentSDG::changeOfst(), MagAOX::app::MagAOXApp< true >::checkConfig(), MagAOX::app::MagAOXApp< true >::clearFSMAlert(), MagAOX::app::dev::dm< alpaoCtrl, float >::clearSat(), MagAOX::app::zaberLowLevel::connect(), MagAOX::app::tcsInterface::doFoffload(), MagAOX::app::tcsInterface::doTToffload(), MagAOX::app::streamWriter::fgThreadExec(), MagAOX::app::sysMonitor::findChronyStatus(), MagAOX::app::tcsInterface::getCatData(), MagAOX::app::INDI_SETCALLBACK_DEFN(), MagAOX::app::sshDigger::loadConfigImpl(), MagAOX::app::zaberLowLevel::loadStages(), flatlogs::logLevelFromString(), MagAOX::app::cacaoInterface::loopOn(), MagAOX::app::MagAOXApp< true >::MagAOXApp(), MagAOX::app::ttmModulator::modTTM(), MagAOX::app::picoMotorCtrl::newCallBack_picopos(), MagAOX::app::picoMotorCtrl::newCallBack_presetName(), MagAOX::app::dev::stdCamera< ocam2KCtrl >::newCallBack_roi_fullbin(), logdump::printLogBuff(), flatlogs::priorityString(), MagAOX::app::zaberStage::processWarning(), MagAOX::app::mzmqClient::reportWarning(), MagAOX::app::mzmqServer::reportWarning(), MagAOX::app::dmMode::sendCommand(), MagAOX::app::ocam2KCtrl::setEMGain(), MagAOX::app::picamCtrl::setEMGain(), MagAOX::app::andorCtrl::setEMGain(), MagAOX::app::dev::dm< alpaoCtrl, float >::setFlat(), MagAOX::app::dev::dm< alpaoCtrl, float >::setTest(), MagAOX::app::MagAOXApp< true >::state(), MagAOX::app::magAOXMaths::updateVals(), MagAOX::app::dev::dm< alpaoCtrl, float >::zeroAll(), MagAOX::app::dev::dm< alpaoCtrl, float >::zeroFlat(), and MagAOX::app::dev::dm< alpaoCtrl, float >::zeroTest().