Dobby 3.0
Dobby “Docker based Thingy” is a tool for managing and running OCI containers using crun
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
PipeInput Class Reference

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
 

Detailed Description

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.


The documentation for this class was generated from the following file: