10#ifndef logger_types_config_log_hpp
11#define logger_types_config_log_hpp
40 const std::string & value,
41 const std::string & source
44 auto _name =
builder.CreateString(name);
45 auto _value =
builder.CreateString(value);
46 auto _source =
builder.CreateString(source);
69 static_cast<void>(len);
73 std::string msg =
"Config: ";
77 msg += fbs->name()->c_str();
84 msg += fbs->value()->c_str();
91 msg += fbs->source()->c_str();
106 static_cast<void>(member);
108 std::cerr <<
"meta data doesn't make sense for config_log.\n";
The MagAO-X logger flatbuffer log base type.
uint16_t eventCodeT
The type of an event code (16-bit unsigned int).
msgLen2T msgLenT
The type used to refer to the message length, regardless of length.
int8_t logPrioT
The type of the log priority code.
static void * messageBuffer(bufferPtrT &logBuffer)
Get the message buffer address.
std::shared_ptr< char > bufferPtrT
The log entry buffer smart pointer.
static constexpr flatlogs::eventCodeT CONFIG_LOG
const MagAOX::logger::Config_log_fb * GetConfig_log_fb(const void *buf)
bool VerifyConfig_log_fbBuffer(::flatbuffers::Verifier &verifier)
inline ::flatbuffers::Offset< Config_log_fb > CreateConfig_log_fb(::flatbuffers::FlatBufferBuilder &_fbb, ::flatbuffers::Offset<::flatbuffers::String > name=0, uint32_t code=0, ::flatbuffers::Offset<::flatbuffers::String > value=0, ::flatbuffers::Offset<::flatbuffers::String > source=0)
static constexpr logPrioT LOG_INFO
Informational. The info log level is the lowest level recorded during normal operations.
The type of the input message.
messageT(const std::string &name, const int &code, const std::string &value, const std::string &source)
Construct from components.
Log entry recording configuration settings at startup.
static logMetaDetail getAccessor(const std::string &member)
Get an empty logMetaDetail because meta data doesn't make sense for this log.
static std::string msgString(void *msgBuffer, flatlogs::msgLenT len)
Get the message formatte for human consumption.
static bool verify(flatlogs::bufferPtrT &logBuff, flatlogs::msgLenT len)
static const flatlogs::eventCodeT eventCode
The event code.
static const flatlogs::logPrioT defaultLevel
The default level.
Message type for resolving log messages with a f.b. builder.
flatbuffers::FlatBufferBuilder builder
Base class for logs consisting of a flatbuffer message.