List of all members.
Public Member Functions
||FileAppender (std::string name)|
|virtual bool ||configureLayout ()|
| ||Optionally create a layout according to layoutName and layoutPattern. |
|virtual bool ||startHook ()|
| ||ensure port is connected before we start |
virtual void ||stopHook ()|
| ||Drain the buffer. |
virtual void ||drainBuffer ()|
| ||Process all remaining events in buffer. |
Protected Member Functions
virtual bool ||configureHook ()|
| ||Create log4cpp appender. |
virtual void ||updateHook ()|
| ||Process at most maxEventsPerCycle event. |
virtual void ||cleanupHook ()|
| ||Destroy appender. |
|virtual void ||processEvents (int n)|
| ||Process up n events. |
RTT::Property< std::string > ||filename_prop|
| ||Name of file to append to. |
RTT::Property< int > ||maxEventsPerCycle_prop|
| ||Property to set maximum number of log events to pop per cycle. |
| ||Maximum number of log events to pop per cycle. |
< OCL::logging::LoggingEvent >
| ||Port we receive logging events on Initially unconnected. |
log4cpp::Appender * ||appender|
| ||Appender created by derived class. |
RTT::Property< std::string > ||layoutName_prop|
| ||Layout name (e.g. "simple", "basic", "pattern") |
RTT::Property< std::string > ||layoutPattern_prop|
| ||Layout conversion pattern (for those layouts that use a pattern) |
unsigned int ||countMaxPopped|
Definition at line 10 of file FileAppender.hpp.
Member Function Documentation
Optionally create a layout according to layoutName and layoutPattern.
- !appender, if you want a layout to actually be created
- true if not layout or no appender or a layout was created successfully, otherwise false
- ensure "" != layoutPattern?
Definition at line 29 of file Appender.cpp.
Process up n events.
|n||if 0 ==n then process events until buffer is empty, otherwise process at most n events |
- 0 <= n (otherwise acts as though n==1)
Definition at line 104 of file Appender.cpp.
ensure port is connected before we start
- input ports must be connected?
Definition at line 69 of file Appender.cpp.
Member Data Documentation
Port we receive logging events on Initially unconnected.
The logging service connects appenders.
Definition at line 47 of file Appender.hpp.
Maximum number of log events to pop per cycle.
Defaults to 1.
A value of 0 indicates to not limit the number of events per cycle. With enough event production, this could lead to thread starvation!
Definition at line 39 of file FileAppender.hpp.
The documentation for this class was generated from the following files: