#include <aspect/logging.h>
Inheritance diagram for fawkes::LoggingAspect:
Public Member Functions | |
virtual | ~LoggingAspect () |
Virtual empty Destructor. | |
void | init_LoggingAspect (Logger *logger) |
Set the logger. | |
Protected Attributes | |
Logger * | logger |
This is the Logger member used to access the logger. |
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.
Definition at line 31 of file logging.h.
fawkes::LoggingAspect::~LoggingAspect | ( | ) | [virtual] |
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 63 of file logging.cpp.
References logger.
Referenced by fawkes::AspectIniFin::init().
Logger fawkes::LoggingAspect::logger [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 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(), init_LoggingAspect(), JoystickAcquisitionThread::JoystickAcquisitionThread(), 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(), LaseEdlAcquisitionThread::pre_init(), 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().