Public Member Functions | Protected Attributes

fawkes::LoggingAspect Class Reference
[Fawkes Thread Aspects]

Thread aspect to log output. More...

#include <>>

Inheritance diagram for fawkes::LoggingAspect:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~LoggingAspect ()
 Virtual empty Destructor.
void init_LoggingAspect (Logger *logger)
 Set the logger.

Protected Attributes

Loggerlogger
 This is the Logger member used to access the logger.

Detailed Description

Thread aspect to log output.

Give this aspect to your thread to gain access to the central log. When using this thread all output should be done with the logger set for this aspect. Use it to log debug, informational, warning and error messages. The logger allows for some control over what is being displayed and where. It may be simple console logout or a network logger.

It is guaranteed that if used properly from within plugins that initLoggingAspect() is called before the thread is started and that you can access the logger via the logger member.

Author:
Tim Niemueller

Definition at line 31 of file logging.h.


Constructor & Destructor Documentation

fawkes::LoggingAspect::~LoggingAspect (  )  [virtual]

Virtual empty Destructor.

Definition at line 52 of file logging.cpp.


Member Function Documentation

void fawkes::LoggingAspect::init_LoggingAspect ( Logger logger  ) 

Set the logger.

It is guaranteed that this is called for a logging thread before Thread::start() is called (when running regularly inside Fawkes).

Parameters:
logger Logger instance to use.

Definition at line 63 of file logging.cpp.

Referenced by fawkes::AspectIniFin::init().


Member Data Documentation

This is the Logger member used to access the logger.

The logger will remain valid for the whole lifetime of the thread.

Definition at line 39 of file logging.h.

Referenced by RefBoxCommThread::add_penalty(), WorldModelNetworkThread::ball_pos_rcvd(), ExampleNetworkThread::client_connected(), ExampleNetworkThread::client_disconnected(), PanTiltRX28Thread::finalize(), HokuyoUrgGbxAcquisitionThread::finalize(), HokuyoUrgAcquisitionThread::finalize(), LaseEdlAcquisitionThread::finalize(), ExampleNetworkThread::finalize(), ExampleFinalizeNettlerThread::finalize(), ExampleBlackBoardThread::finalize(), ExampleThread::finalize(), FvRetrieverThread::finalize(), WorldModelNetworkThread::gamestate_rcvd(), EclipseAgentThread::get_logger(), WorldModelNetworkThread::global_ball_pos_rcvd(), ExampleNetworkThread::handle_network_message(), XmlRpcThread::init(), XabslEngineThread::init(), WorldModelThread::init(), WebviewThread::init(), RefBoxCommThread::init(), EclipseAgentThread::init(), PanTiltSonyEviD100PThread::init(), PanTiltRX28Thread::init(), PanTiltDirectedPerceptionThread::init(), SkillerExecutionThread::init(), LuaAgentExecutionThread::init(), HokuyoUrgGbxAcquisitionThread::init(), HokuyoUrgAcquisitionThread::init(), LaseEdlAcquisitionThread::init(), KatanaActThread::init(), LaserSensorThread::init(), ExampleFinalizeNettlerThread::init(), ExampleBlackBoardThread::init(), BlackBoardSynchronizationThread::init(), BBLogReplayThread::init(), BBLoggerThread::init(), TimeTrackerMainLoopThread::init(), ExampleThread::init(), FvRetrieverThread::init(), XabslEngineThread::loop(), PlayerClientThread::loop(), PanTiltSonyEviD100PThread::loop(), PanTiltRX28Thread::loop(), PanTiltDirectedPerceptionThread::loop(), SkillerExecutionThread::loop(), LuaAgentExecutionThread::loop(), LaserHtSensorProcThread::loop(), HokuyoUrgGbxAcquisitionThread::loop(), KatanaActThread::loop(), PanTiltSensorThread::loop(), WorldModelNetworkThread::loop(), BBLogReplayThread::loop(), ExampleThread::loop(), BallPosLogThread::loop(), FvSrSavePipelineThread::loop(), FvBaseThread::loop(), JoystickAcquisitionThread::loop(), XabslEngineThread::once(), FestivalSynthThread::once(), WorldModelNetworkThread::opponent_pose_rcvd(), WorldModelNetworkThread::pose_rcvd(), ExampleFinalizeNettlerThread::prepare_finalize_user(), FvBaseThread::register_for_camera(), BBLoggerThread::set_enabled(), RefBoxCommThread::set_gamestate(), RefBoxCommThread::set_half(), RefBoxCommThread::set_score(), RefBoxCommThread::set_team_goal(), PlayerClientThread::sync_fawkes_to_player(), and FvBaseThread::unregister_thread().


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