Public Member Functions | Protected Attributes
OCL::logging::Appender Class Reference

#include <Appender.hpp>

Inheritance diagram for OCL::logging::Appender:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Appender (std::string name)
virtual bool configureLayout ()
virtual bool startHook ()
 ensure port is connected before we start
virtual ~Appender ()

Protected Attributes

log4cpp::Appenderappender
 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)
RTT::InputPort
< OCL::logging::LoggingEvent
log_port

Detailed Description

Definition at line 16 of file Appender.hpp.


Constructor & Destructor Documentation

OCL::logging::Appender::Appender ( std::string  name)

Definition at line 12 of file Appender.cpp.

Definition at line 24 of file Appender.cpp.


Member Function Documentation

Optionally create a layout according to layoutName and layoutPattern.

Precondition:
!appender, if you want a layout to actually be created
Returns:
true if not layout or no appender or a layout was created successfully, otherwise false
Todo:
ensure "" != layoutPattern?

Definition at line 28 of file Appender.cpp.

ensure port is connected before we start

Todo:
input ports must be connected?

Reimplemented from RTT::base::TaskCore.

Definition at line 68 of file Appender.cpp.


Member Data Documentation

Appender created by derived class.

Definition at line 37 of file Appender.hpp.

Layout name (e.g. "simple", "basic", "pattern")

Definition at line 41 of file Appender.hpp.

Layout conversion pattern (for those layouts that use a pattern)

Definition at line 43 of file Appender.hpp.

Port we receive logging events on Initially unconnected. The logging service connects appenders.

Definition at line 34 of file Appender.hpp.


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


ocl
Author(s): OCL Development Team
autogenerated on Thu Jan 2 2014 11:38:08