API
 
Loading...
Searching...
No Matches

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

Variables

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

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

◆ LOG_CRITICAL

constexpr 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 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 logPrioT flatlogs::logPrio::LOG_DEFAULT = std::numeric_limits<logPrioT>::max() - 1
staticconstexpr

◆ LOG_EMERGENCY

◆ LOG_ERROR

constexpr 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::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::INDI_NEWCALLBACK_DEFN(), 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::zaberLowLevel::loadStages(), 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::stdCamera< derivedT >::newCallBack_mode(), MagAOX::app::picoMotorCtrl::newCallBack_presetName(), MagAOX::app::dev::stdCamera< derivedT >::newCallBack_readoutSpeed(), 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::ocam2KCtrl::setTempControl(), MagAOX::app::ocam2KCtrl::setTempSetPt(), MagAOX::app::MagAOXApp< _useINDI >::state(), MagAOX::app::magAOXMaths::updateVals(), MagAOX::app::picoMotorCtrl::writeChannelCounts(), MagAOX::app::bmcCtrl::zeroDM(), and MagAOX::app::irisaoCtrl::zeroDM().

◆ LOG_INFO

◆ LOG_NOTICE

constexpr 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_NEWCALLBACK_DEFN(), MagAOX::app::INDI_NEWCALLBACK_DEFN(), MagAOX::app::INDI_NEWCALLBACK_DEFN(), MagAOX::app::INDI_NEWCALLBACK_DEFN(), MagAOX::app::INDI_NEWCALLBACK_DEFN(), MagAOX::app::INDI_NEWCALLBACK_DEFN(), MagAOX::app::INDI_NEWCALLBACK_DEFN(), MagAOX::app::INDI_NEWCALLBACK_DEFN(), MagAOX::app::INDI_NEWCALLBACK_DEFN(), MagAOX::app::INDI_NEWCALLBACK_DEFN(), MagAOX::app::INDI_NEWCALLBACK_DEFN(), MagAOX::app::INDI_NEWCALLBACK_DEFN(), MagAOX::app::INDI_NEWCALLBACK_DEFN(), MagAOX::app::INDI_NEWCALLBACK_DEFN(), MagAOX::app::INDI_NEWCALLBACK_DEFN(), MagAOX::app::INDI_NEWCALLBACK_DEFN(), MagAOX::app::INDI_NEWCALLBACK_DEFN(), MagAOX::app::INDI_NEWCALLBACK_DEFN(), MagAOX::app::INDI_NEWCALLBACK_DEFN(), MagAOX::app::INDI_NEWCALLBACK_DEFN(), MagAOX::app::INDI_NEWCALLBACK_DEFN(), MagAOX::app::INDI_NEWCALLBACK_DEFN(), MagAOX::app::INDI_NEWCALLBACK_DEFN(), MagAOX::app::INDI_NEWCALLBACK_DEFN(), MagAOX::app::INDI_NEWCALLBACK_DEFN(), MagAOX::app::INDI_NEWCALLBACK_DEFN(), MagAOX::app::INDI_NEWCALLBACK_DEFN(), MagAOX::app::INDI_NEWCALLBACK_DEFN(), MagAOX::app::INDI_NEWCALLBACK_DEFN(), MagAOX::app::INDI_NEWCALLBACK_DEFN(), MagAOX::app::INDI_NEWCALLBACK_DEFN(), MagAOX::app::INDI_NEWCALLBACK_DEFN(), MagAOX::app::INDI_NEWCALLBACK_DEFN(), MagAOX::app::INDI_NEWCALLBACK_DEFN(), 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::acesxeCtrl::start(), MagAOX::app::acesxeCtrl::stop(), MagAOX::app::MagAOXApp< _useINDI >::threadStart(), MagAOX::app::magAOXMaths::updateVals(), MagAOX::app::acesxeCtrl::windSpeed(), and MagAOX::app::t2wOffloader::zero().

◆ LOG_TELEM

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

A telemetry recording.

Definition at line 58 of file logPriority.hpp.

Referenced by flatlogs::logLevelFromString(), and flatlogs::priorityString().

◆ LOG_UNKNOWN

constexpr 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 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::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::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::MagAOXApp< _useINDI >::state(), MagAOX::app::trippLitePDU::updateAlarmsAndWarnings(), and MagAOX::app::magAOXMaths::updateVals().