An application to dump MagAo-X binary logs to the terminal. More...
#include <logdump.hpp>
Public Member Functions | |
virtual void | setupConfig () |
virtual void | loadConfig () |
virtual int | execute () |
virtual int | gettimes (std::vector< std::string > &logs) |
Protected Member Functions | |
void | printLogBuff (const logPrioT &lvl, const eventCodeT &ec, const msgLenT &len, bufferPtrT &logBuff) |
void | printLogJson (const msgLenT &len, bufferPtrT &logBuff) |
Protected Attributes | |
std::string | m_dir |
std::string | m_ext |
std::string | m_file |
bool | m_time {false} |
bool | m_jsonMode {false} |
unsigned long | m_pauseTime {250} |
int | m_fileCheckInterval {20} |
When following, pause time to check for new data. msec. Default is 250 msec. More... | |
std::vector< std::string > | m_prefixes |
When following, number of loops to wait before checking for a new file. Default is 4. More... | |
size_t | m_nfiles {0} |
bool | m_follow {false} |
Number of files to dump. Default is 0, unless following then the default is 1. More... | |
logPrioT | m_level {logPrio::LOG_DEFAULT} |
std::vector< eventCodeT > | m_codes |
An application to dump MagAo-X binary logs to the terminal.
document this
add config for colors, both on/off and options to change.
Definition at line 39 of file logdump.hpp.
|
virtual |
Definition at line 160 of file logdump.hpp.
|
virtual |
Definition at line 425 of file logdump.hpp.
|
virtual |
Definition at line 101 of file logdump.hpp.
|
inlineprotected |
Definition at line 352 of file logdump.hpp.
|
inlineprotected |
Definition at line 414 of file logdump.hpp.
|
virtual |
Definition at line 83 of file logdump.hpp.
|
protected |
Definition at line 61 of file logdump.hpp.
|
protected |
Definition at line 43 of file logdump.hpp.
|
protected |
Definition at line 44 of file logdump.hpp.
|
protected |
Definition at line 45 of file logdump.hpp.
|
protected |
When following, pause time to check for new data. msec. Default is 250 msec.
Definition at line 51 of file logdump.hpp.
|
protected |
Number of files to dump. Default is 0, unless following then the default is 1.
Definition at line 57 of file logdump.hpp.
|
protected |
Definition at line 48 of file logdump.hpp.
|
protected |
Definition at line 59 of file logdump.hpp.
|
protected |
Definition at line 55 of file logdump.hpp.
|
protected |
Definition at line 50 of file logdump.hpp.
|
protected |
When following, number of loops to wait before checking for a new file. Default is 4.
Definition at line 53 of file logdump.hpp.
|
protected |
Definition at line 47 of file logdump.hpp.