API

The MagAO-X logger log priority levels. More...

#include <mx/ioutils/stringUtils.hpp>
#include "logDefs.hpp"
Include dependency graph for logPriority.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

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

Functions

std::string flatlogs::priorityString (logPrioT &prio)
 Get the string representation of a log priority. More...
 
logPrioT flatlogs::logLevelFromString (const std::string &str)
 Get the log priority from a string, which might have the number or the name. More...
 

Variables

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

Detailed Description

The MagAO-X logger log priority levels.

Author
Jared R. Males (jared.nosp@m.male.nosp@m.s@gma.nosp@m.il.c.nosp@m.om)

History:

  • 2017-07-22 created by JRM
  • 2018-08-17 renamed and moved to flatlogs

Definition in file logPriority.hpp.