Fawkes API
Fawkes Development Version
|
Thread aspect to log output. More...
#include <>>
Inherits fawkes::Aspect.
Inherited by AgentControlThread, AmclThread, BallPosLogThread, BBLoggerThread, BBLogReplayThread, BlackBoardSynchronizationThread, CLIPSThread, EclipseAgentThread, ExampleBlackBoardThread, ExampleFinalizeNettlerThread, ExampleNetworkThread, ExampleThread, FestivalSynthThread, FliteSynthThread, FountainThread, FvBaseThread, FvRetrieverThread, FvSrSavePipelineThread, JoystickAcquisitionThread, JoystickActThread, JoystickSensorThread, KatanaActThread, KatanaSensorThread, LaserAcquisitionThread, LaserFilterThread, LaserHtSensorProcThread, LaserPointCloudThread, LaserSensorThread, LuaAgentContinuousExecutionThread, LuaAgentPeriodicExecutionThread, MapLaserGenThread, NaoQiBrokerThread, NaoQiButtonThread, NaoQiDCMThread, NaoQiLedThread, NaoQiMotionThread, NaoQiSpeechSynthThread, OpenNiContextThread, OpenNiDepthThread, OpenNiHandTrackerThread, OpenNiImageThread, OpenNiPclOnlyThread, OpenNiPointCloudThread, OpenNiUserTrackerThread, OpenRaveMessageHandlerThread, OpenRaveThread, PanTiltActThread, PanTiltSensorThread, PlayerClientThread, RefBoxCommThread, RobotinoActThread, RobotinoIrPclThread, RobotinoJoystickThread, RobotinoRosJointsThread, RobotinoSensorThread, Roomba500Thread, RoombaJoystickThread, RoombaSensorThread, ROSCmdVelThread, RosImagesThread, RosLaserScanThread, RosNavigatorThread, ROSNodeThread, ROSOdometryThread, RosPointCloudThread, ROSTalkerPubThread, RosTfThread, ROSWebviewThread, RRDExampleThread, RRDThread, RRDWebThread, SkillerExecutionThread, StaticTransformsThread, TabletopObjectsThread, TfExampleThread, TimeTrackerMainLoopThread, WebviewThread, WorldModelNetworkThread, WorldModelThread, XabslEngineThread, and XmlRpcThread.
Public Member Functions | |
LoggingAspect () | |
Constructor. More... | |
virtual | ~LoggingAspect () |
Virtual empty Destructor. More... | |
void | init_LoggingAspect (Logger *logger) |
Set the logger. More... | |
![]() | |
const std::list< const char * > & | get_aspects () const |
Get list of aspect names attached to a aspected thread. More... | |
Protected Attributes | |
Logger * | logger |
This is the Logger member used to access the logger. More... | |
Additional Inherited Members | |
![]() | |
void | add_aspect (const char *name) |
Add an aspect to a thread. More... | |
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.
fawkes::LoggingAspect::LoggingAspect | ( | ) |
Constructor.
Definition at line 55 of file logging.cpp.
|
virtual |
Virtual empty Destructor.
Definition at line 62 of file logging.cpp.
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).
logger | Logger instance to use. |
Definition at line 73 of file logging.cpp.
Referenced by fawkes::LoggingAspectIniFin::init().
|
protected |
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 44 of file logging.h.
Referenced by RefBoxCommThread::add_penalty(), OpenRaveThread::add_robot(), WorldModelNetworkThread::ball_pos_rcvd(), OpenNiUserTrackerThread::calibration_end(), OpenNiUserTrackerThread::calibration_start(), ExampleNetworkThread::client_connected(), ExampleNetworkThread::client_disconnected(), LuaAgentContinuousExecutionThread::fam_event(), ExampleThread::finalize(), ExampleFinalizeNettlerThread::finalize(), ExampleNetworkThread::finalize(), ExampleBlackBoardThread::finalize(), LaseEdlAcquisitionThread::finalize(), HokuyoUrgAcquisitionThread::finalize(), OpenRaveMessageHandlerThread::finalize(), HokuyoUrgGbxAcquisitionThread::finalize(), FvRetrieverThread::finalize(), RosNavigatorThread::finalize(), RosImagesThread::finalize(), PanTiltRX28Thread::finalize(), KatanaActThread::finalize(), WorldModelNetworkThread::gamestate_rcvd(), OpenNiHandTrackerThread::gesture_progress(), OpenNiHandTrackerThread::gesture_recognized(), EclipseAgentThread::get_logger(), WorldModelNetworkThread::global_ball_pos_rcvd(), OpenNiHandTrackerThread::hand_create(), OpenNiHandTrackerThread::hand_destroy(), OpenNiHandTrackerThread::hand_update(), ExampleNetworkThread::handle_network_message(), ExampleFinalizeNettlerThread::init(), ExampleThread::init(), LaseEdlAcquisitionThread::init(), CLIPSThread::init(), ExampleBlackBoardThread::init(), HokuyoUrgAcquisitionThread::init(), NaoQiBrokerThread::init(), RRDWebThread::init(), TimeTrackerMainLoopThread::init(), OpenRaveMessageHandlerThread::init(), EclipseAgentThread::init(), RoombaJoystickThread::init(), StaticTransformsThread::init(), PanTiltDirectedPerceptionThread::init(), PanTiltSonyEviD100PThread::init(), HokuyoUrgGbxAcquisitionThread::init(), OpenNiImageThread::init(), LaserSensorThread::init(), OpenRaveThread::init(), ROSNodeThread::init(), MapLaserGenThread::init(), OpenNiHandTrackerThread::init(), FvRetrieverThread::init(), WorldModelThread::init(), RefBoxCommThread::init(), Roomba500Thread::init(), RosNavigatorThread::init(), BlackBoardSynchronizationThread::init(), RosPointCloudThread::init(), RosLaserScanThread::init(), LaserFilterThread::init(), PanTiltRX28Thread::init(), XmlRpcThread::init(), NaoQiButtonThread::init(), BBLogReplayThread::init(), XabslEngineThread::init(), BBLoggerThread::init(), LuaAgentPeriodicExecutionThread::init(), WebviewThread::init(), LuaAgentContinuousExecutionThread::init(), OpenNiPointCloudThread::init(), SkillerExecutionThread::init(), KatanaActThread::init(), AmclThread::init(), JoystickAcquisitionThread::JoystickAcquisitionThread(), RoombaSensorThread::loop(), ExampleThread::loop(), RRDExampleThread::loop(), PanTiltSensorThread::loop(), BallPosLogThread::loop(), FvSrSavePipelineThread::loop(), OpenRaveMessageHandlerThread::loop(), RobotinoJoystickThread::loop(), RoombaJoystickThread::loop(), TfExampleThread::loop(), HokuyoUrgGbxAcquisitionThread::loop(), PanTiltSonyEviD100PThread::loop(), PanTiltDirectedPerceptionThread::loop(), JoystickAcquisitionThread::loop(), MapLaserGenThread::loop(), LaserHtSensorProcThread::loop(), RosNavigatorThread::loop(), Roomba500Thread::loop(), WorldModelNetworkThread::loop(), RosLaserScanThread::loop(), LaserFilterThread::loop(), FvBaseThread::loop(), OpenNiUserTrackerThread::loop(), NaoQiButtonThread::loop(), BBLogReplayThread::loop(), PanTiltRX28Thread::loop(), TabletopObjectsThread::loop(), XabslEngineThread::loop(), LuaAgentPeriodicExecutionThread::loop(), RobotinoActThread::loop(), LuaAgentContinuousExecutionThread::loop(), RobotinoSensorThread::loop(), SkillerExecutionThread::loop(), PlayerClientThread::loop(), KatanaActThread::loop(), AmclThread::loop(), OpenNiUserTrackerThread::lost_user(), OpenNiUserTrackerThread::new_user(), FestivalSynthThread::once(), XabslEngineThread::once(), WorldModelNetworkThread::opponent_pose_rcvd(), OpenNiUserTrackerThread::pose_end(), WorldModelNetworkThread::pose_rcvd(), OpenNiUserTrackerThread::pose_start(), ExampleFinalizeNettlerThread::prepare_finalize_user(), PanTiltRX28Thread::prepare_finalize_user(), LuaAgentContinuousExecutionThread::read_interfaces(), 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(), FvBaseThread::unregister_thread(), and LuaAgentContinuousExecutionThread::write_interfaces().