Dobby 3.0
Dobby “Docker based Thingy” is a tool for managing and running OCI containers using crun
|
Object that reads a read end of a pipe and sends the data received on it to ethanlog. More...
Public Member Functions | |
PipeInput (int fd, int logLevel, const char *filename) | |
bool | isValid () const |
void | onReadReady () |
Private Member Functions | |
void | processBuffer () |
void | logMessage (const char *message, int messageLen) const |
Private Attributes | |
const int | mFd |
const int | mLogLevel |
const std::string | mFileName |
bool | mValid |
char | mBuffer [1024] |
int | mBufferOffset |
Object that reads a read end of a pipe and sends the data received on it to ethanlog.
This attempts to split the data into newline separated log messages. It also parses the first 3 lines of the message to see if it contains the explicit log level.