API
Applications
Utilities
API
Handbook
GitHub
Home
text_log.hpp
Go to the documentation of this file.
1
/** \file text_log.hpp
2
* \brief The MagAO-X logger text_log log type.
3
* \author Jared R. Males (jaredmales@gmail.com)
4
*
5
* \ingroup logger_types_files
6
*
7
* History:
8
* - 2018-08-18 created by JRM
9
*/
10
#ifndef logger_types_text_log_hpp
11
#define logger_types_text_log_hpp
12
13
#include "
string_log.hpp
"
14
15
namespace
MagAOX
16
{
17
namespace
logger
18
{
19
20
///A simple text log, a string-type log.
21
/** \ingroup logger_types
22
*/
23
struct
text_log
:
public
string_log
24
{
25
///The event code
26
static
const
flatlogs::eventCodeT
eventCode
= eventCodes::TEXT_LOG;
27
28
///The default level
29
static
const
flatlogs::logPrioT
defaultLevel
=
flatlogs::logPrio::LOG_INFO
;
30
31
};
32
33
34
35
}
//namespace logger
36
}
//namespace MagAOX
37
38
#endif
//logger_types_text_log_hpp
flatlogs::eventCodeT
uint16_t eventCodeT
The type of an event code (16-bit unsigned int).
Definition:
logDefs.hpp:40
flatlogs::logPrioT
int8_t logPrioT
The type of the log priority code.
Definition:
logDefs.hpp:21
MagAOX
Definition:
dm.hpp:24
flatlogs::logPrio::LOG_INFO
constexpr static logPrioT LOG_INFO
Informational. The info log level is the lowest level recorded during normal operations.
Definition:
logPriority.hpp:49
string_log.hpp
The MagAO-X logger string_log log type.
MagAOX::logger::string_log
Base class for logs consisting of a string message.
Definition:
string_log.hpp:30
MagAOX::logger::text_log
A simple text log, a string-type log.
Definition:
text_log.hpp:24
MagAOX::logger::text_log::eventCode
static const flatlogs::eventCodeT eventCode
The event code.
Definition:
text_log.hpp:26
MagAOX::logger::text_log::defaultLevel
static const flatlogs::logPrioT defaultLevel
The default level.
Definition:
text_log.hpp:29
libMagAOX
logger
types
text_log.hpp
Generated by
1.9.1