Fawkes API Fawkes Development Version
|
Thread aspect to log output. More...
#include <>>
Inherits fawkes::Aspect.
Inherited by ASPThread, AgentControlThread, AmclROSThread, AmclThread, BBLogReplayThread, BBLoggerThread, BackendInfoRestApi, BallPosLogThread, BlackBoardSynchronizationThread, BlackboardListenerThread, BlackboardRestApi, Bumblebee2Thread, CLIPSThread, CedarThread, ClipsAgentThread, ClipsExecutiveRestApi, ClipsExecutiveThread, ClipsNavGraphThread, ClipsPddlParserThread, ClipsProtobufThread, ClipsROSThread, ClipsRestApi, ClipsRobotMemoryThread, ClipsTFThread, ColliActThread, ColliThread, ConfigurationRestApi, DepthcamSimThread, DynamixelActThread, DynamixelDriverThread, DynamixelSensorThread, EclipseAgentThread, ExampleBlackBoardThread, ExampleFinalizeNettlerThread, ExampleNetworkThread, ExampleThread, ExecutionTimeEstimatorLookupEstimatorThread, FestivalSynthThread, FliteSynthThread, FountainThread, FvAcquisitionThread, FvBaseThread, FvRetrieverThread, GazeboNodeThread, GazsimCommThread, GazsimTimesourceThread, GossipExampleReceiverThread, GossipExampleSenderThread, GossipThread, HardwareModelsThread, IMUAcquisitionThread, IMUSensorThread, ImageRestApi, JacoActThread, JacoBimanualActThread, JacoBimanualGotoThread, JacoGotoThread, JacoInfoThread, JacoOpenraveBaseThread, JoystickAcquisitionThread, JoystickActThread, JoystickSensorThread, JoystickTeleOpThread, KatanaActThread, KatanaSensorThread, LaserAcquisitionThread, LaserBoxFilterDataFilter, LaserClusterThread, LaserFilterThread, LaserLinesThread, LaserPointCloudThread, LaserSensorThread, LaserSimThread, LocalizationSimThread, LuaAgentContinuousExecutionThread, LuaAgentPeriodicExecutionThread, MapLaserGenThread, MetricsThread, MongoDBInstanceConfig, MongoDBReplicaSetConfig, MongoDBThread, MongoLogBlackboardThread, MongoLogImagesThread, MongoLogLoggerThread, MongoLogPointCloudThread, MongoLogTransformsThread, MongoRRDThread, NaoQiBrokerThread, NaoQiButtonThread, NaoQiDCMThread, NaoQiLedThread, NaoQiMotionThread, NaoQiSpeechSynthThread, NavGraphClustersThread, NavGraphGeneratorThread, NavGraphGeneratorVisualizationThread, NavGraphInteractiveThread, NavGraphROSPubThread, NavGraphStaticConstraintsThread, NavGraphThread, NavGraphVisualizationThread, OpenNiContextThread, OpenNiDepthThread, OpenNiHandTrackerThread, OpenNiImageThread, OpenNiPclOnlyThread, OpenNiPointCloudThread, OpenNiUserTrackerThread, OpenPRSAgentThread, OpenPRSExampleThread, OpenPRSThread, OpenRaveMessageHandlerThread, OpenRaveThread, OpenraveRobotMemoryThread, PanTiltActThread, PanTiltSensorThread, PddlPlannerThread, PddlRobotMemoryThread, PlayerClientThread, PlexilExecutiveThread, PluginRestApi, PointCloudDBMergeThread, PointCloudDBROSCommThread, PointCloudDBRetrieveThread, PointCloudDBStoreThread, ProcRRDThread, ROSCmdVelThread, ROSNodeThread, ROSOdometryThread, ROSRobotDescriptionThread, ROSTalkerPubThread, RRDExampleThread, RRDThread, Realsense2Thread, RealsenseThread, RefBoxCommThread, RobotMemoryThread, RobotStatePublisherThread, RobotinoActThread, RobotinoComThread, RobotinoIrPclThread, RobotinoRosJointsThread, RobotinoSensorThread, RobotinoSimThread, Roomba500Thread, RoombaJoystickThread, RoombaSensorThread, RosClockThread, RosDynamicReconfigureThread, RosIMUThread, RosImagesThread, RosJointThread, RosLaserScanThread, RosMoveBaseThread, RosNavgraphBreakoutThread, RosNavigatorThread, RosPointCloudThread, RosPosition3DThread, RosSkillerThread, RosTfThread, SkillerExecutionThread, SkillerNavGraphFeature, SkillerRestApi, SkillerSimulatorExecutionThread, StaticTransformsThread, StnGeneratorThread, SyncPointTestThread, TabletopObjectsThread, TfExampleThread, TimeTrackerMainLoopThread, TransformsRestApi, VisLocalizationThread, WebcamSimThread, WebviewThread, XabslEngineThread, XmlRpcThread, fawkes::FawkesTimingThread, fawkes::gpp::GologppThread, protoboard::BlackboardManager, and protoboard::ProtobufThead.
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 | ( | ) |
|
virtual |
Virtual empty Destructor.
Definition at line 57 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 67 of file logging.cpp.
References logger.
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 41 of file logging.h.
Referenced by RefBoxCommThread::add_penalty(), OpenRaveThread::add_robot(), JacoOpenraveThread::add_target(), OpenNiUserTrackerThread::calibration_end(), OpenNiUserTrackerThread::calibration_start(), ExampleNetworkThread::client_connected(), ExampleNetworkThread::client_disconnected(), ClipsNavGraphThread::clips_context_destroyed(), ClipsProtobufThread::clips_context_destroyed(), ClipsRobotMemoryThread::clips_context_destroyed(), ClipsTFThread::clips_context_destroyed(), HardwareModelsThread::clips_context_destroyed(), ClipsNavGraphThread::clips_context_init(), ClipsProtobufThread::clips_context_init(), ClipsRobotMemoryThread::clips_context_init(), ClipsTFThread::clips_context_init(), HardwareModelsThread::clips_context_init(), DynamixelDriverThread::exec_act(), DynamixelDriverThread::exec_sensor(), LuaAgentContinuousExecutionThread::fam_event(), NavGraphThread::fam_event(), Bumblebee2Thread::finalize(), ColliThread::finalize(), DynamixelDriverThread::finalize(), ExampleBlackBoardThread::finalize(), ExampleFinalizeNettlerThread::finalize(), ExampleNetworkThread::finalize(), ExampleThread::finalize(), JacoActThread::finalize(), JacoBimanualActThread::finalize(), KatanaActThread::finalize(), LaseEdlAcquisitionThread::finalize(), SickTiM55xUSBAcquisitionThread::finalize(), HokuyoUrgAcquisitionThread::finalize(), HokuyoUrgGbxAcquisitionThread::finalize(), MongoDBThread::finalize(), MongoLogImagesThread::finalize(), OpenPRSThread::finalize(), OpenRaveMessageHandlerThread::finalize(), PanTiltRX28Thread::finalize(), FvRetrieverThread::finalize(), PlexilExecutiveThread::finalize(), RosDynamicReconfigureThread::finalize(), RosImagesThread::finalize(), RosMoveBaseThread::finalize(), RosNavgraphBreakoutThread::finalize(), RosNavigatorThread::finalize(), RosSkillerThread::finalize(), SkillerNavGraphFeature::finalize_lua_context(), OpenNiHandTrackerThread::gesture_progress(), OpenNiHandTrackerThread::gesture_recognized(), EclipseAgentThread::get_logger(), ClipsNavGraphThread::graph_changed(), NavGraphROSPubThread::graph_changed(), OpenNiHandTrackerThread::hand_create(), OpenNiHandTrackerThread::hand_destroy(), OpenNiHandTrackerThread::hand_update(), ExampleNetworkThread::handle_network_message(), AmclThread::init(), MapLaserGenThread::init(), BBLoggerThread::init(), BBLogReplayThread::init(), BlackBoardSynchronizationThread::init(), Bumblebee2Thread::init(), ClipsAgentThread::init(), ClipsExecutiveThread::init(), ClipsExecutiveRestApi::init(), ClipsPddlParserThread::init(), ClipsProtobufThread::init(), CLIPSThread::init(), ClipsRestApi::init(), ColliActThread::init(), ColliThread::init(), DynamixelDriverThread::init(), AgentControlThread::init(), EclipseAgentThread::init(), ExampleBlackBoardThread::init(), ExampleFinalizeNettlerThread::init(), ExampleThread::init(), ExecutionTimeEstimatorLookupEstimatorThread::init(), GazsimCommThread::init(), DepthcamSimThread::init(), LaserSimThread::init(), LocalizationSimThread::init(), RobotinoSimThread::init(), GazsimTimesourceThread::init(), VisLocalizationThread::init(), WebcamSimThread::init(), GazeboNodeThread::init(), GossipThread::init(), JacoActThread::init(), JoystickAcquisitionThread::init(), JoystickTeleOpThread::init(), KatanaActThread::init(), LaserClusterThread::init(), LaserFilterThread::init(), LaseEdlAcquisitionThread::init(), LaserSensorThread::init(), SickTiM55xEthernetAcquisitionThread::init(), SickTiM55xUSBAcquisitionThread::init(), HokuyoUrgAcquisitionThread::init(), HokuyoUrgGbxAcquisitionThread::init(), LuaAgentContinuousExecutionThread::init(), LuaAgentPeriodicExecutionThread::init(), MetricsThread::init(), MongoDBInstanceConfig::init(), MongoDBReplicaSetConfig::init(), MongoDBThread::init(), MongoRRDThread::init(), MongoLogBlackboardThread::init(), MongoLogImagesThread::init(), MongoLogPointCloudThread::init(), MongoLogTransformsThread::init(), NaoQiBrokerThread::init(), NaoQiButtonThread::init(), NavGraphGeneratorThread::init(), NavGraphThread::init(), NavGraphStaticConstraintsThread::init(), OpenNiHandTrackerThread::init(), OpenNiImageThread::init(), OpenNiPointCloudThread::init(), OpenPRSThread::init(), OpenRaveMessageHandlerThread::init(), OpenRaveThread::init(), PanTiltDirectedPerceptionThread::init(), PanTiltRX28Thread::init(), PanTiltSonyEviD100PThread::init(), PddlPlannerThread::init(), FvAcquisitionThread::init(), PointCloudDBMergeThread::init(), PointCloudDBRetrieveThread::init(), PointCloudDBStoreThread::init(), FvRetrieverThread::init(), TabletopObjectsThread::init(), PlexilExecutiveThread::init(), ProcRRDThread::init(), RealsenseThread::init(), Realsense2Thread::init(), RefBoxCommThread::init(), RobotMemoryThread::init(), RobotStatePublisherThread::init(), RoombaJoystickThread::init(), Roomba500Thread::init(), RosDynamicReconfigureThread::init(), RosIMUThread::init(), RosLaserScanThread::init(), RosMoveBaseThread::init(), RosNavgraphBreakoutThread::init(), RosNavigatorThread::init(), ROSNodeThread::init(), RosPointCloudThread::init(), ROSRobotDescriptionThread::init(), RosSkillerThread::init(), SkillerExecutionThread::init(), SkillerRestApi::init(), StnGeneratorThread::init(), TimeTrackerMainLoopThread::init(), BackendInfoRestApi::init(), BlackboardRestApi::init(), ConfigurationRestApi::init(), ImageRestApi::init(), PluginRestApi::init(), TransformsRestApi::init(), WebviewThread::init(), XabslEngineThread::init(), XmlRpcThread::init(), protoboard::BlackboardManager::init(), ASPThread::init(), SickTiM55xCommonAcquisitionThread::init_device(), init_LoggingAspect(), SkillerNavGraphFeature::init_lua_context(), JoystickAcquisitionThread::JoystickAcquisitionThread(), LaserBoxFilterDataFilter::LaserBoxFilterDataFilter(), AmclThread::loop(), MapLaserGenThread::loop(), BBLogReplayThread::loop(), Bumblebee2Thread::loop(), ClipsAgentThread::loop(), ColliActThread::loop(), ColliThread::loop(), AgentControlThread::loop(), EclipseAgentThread::loop(), BallPosLogThread::loop(), ExampleThread::loop(), TfExampleThread::loop(), GossipExampleSenderThread::loop(), HardwareModelsThread::loop(), CruizCoreXG1010AcquisitionThread::loop(), JacoBimanualActThread::loop(), JacoBimanualGotoThread::loop(), JacoGotoThread::loop(), JacoInfoThread::loop(), JoystickAcquisitionThread::loop(), JoystickTeleOpThread::loop(), KatanaActThread::loop(), LaserClusterThread::loop(), LaserFilterThread::loop(), SickTiM55xEthernetAcquisitionThread::loop(), SickTiM55xUSBAcquisitionThread::loop(), HokuyoUrgGbxAcquisitionThread::loop(), LuaAgentContinuousExecutionThread::loop(), LuaAgentPeriodicExecutionThread::loop(), MongoDBInstanceConfig::loop(), MongoDBReplicaSetConfig::loop(), MongoRRDThread::loop(), MongoLogImagesThread::loop(), MongoLogPointCloudThread::loop(), MongoLogTransformsThread::loop(), NaoQiButtonThread::loop(), NavGraphGeneratorThread::loop(), NavGraphThread::loop(), OpenNiUserTrackerThread::loop(), OpenraveRobotMemoryThread::loop(), OpenRaveMessageHandlerThread::loop(), PanTiltDirectedPerceptionThread::loop(), PanTiltRX28Thread::loop(), PanTiltSensorThread::loop(), PanTiltSonyEviD100PThread::loop(), PddlPlannerThread::loop(), PddlRobotMemoryThread::loop(), FvAcquisitionThread::loop(), FvBaseThread::loop(), PointCloudDBMergeThread::loop(), PointCloudDBRetrieveThread::loop(), PointCloudDBStoreThread::loop(), PointCloudDBROSCommThread::loop(), TabletopObjectsThread::loop(), PlayerClientThread::loop(), PlexilExecutiveThread::loop(), ProcRRDThread::loop(), RealsenseThread::loop(), Realsense2Thread::loop(), RobotMemoryThread::loop(), RobotinoActThread::loop(), DirectRobotinoComThread::loop(), OpenRobotinoComThread::loop(), RoombaJoystickThread::loop(), RoombaSensorThread::loop(), Roomba500Thread::loop(), RosDynamicReconfigureThread::loop(), RosLaserScanThread::loop(), RosMoveBaseThread::loop(), RosNavgraphBreakoutThread::loop(), RosNavigatorThread::loop(), RosSkillerThread::loop(), RRDExampleThread::loop(), SkillerSimulatorExecutionThread::loop(), StnGeneratorThread::loop(), SyncPointTestThread::loop(), XabslEngineThread::loop(), protoboard::BlackboardManager::loop(), OpenNiUserTrackerThread::lost_user(), OpenNiUserTrackerThread::new_user(), FestivalSynthThread::once(), PlexilExecutiveThread::once(), XabslEngineThread::once(), OpenNiUserTrackerThread::pose_end(), OpenNiUserTrackerThread::pose_start(), LaseEdlAcquisitionThread::pre_init(), ExampleFinalizeNettlerThread::prepare_finalize_user(), PanTiltRX28Thread::prepare_finalize_user(), PlexilExecutiveThread::prepare_finalize_user(), SickTiM55xCommonAcquisitionThread::read_common_config(), LuaAgentContinuousExecutionThread::read_interfaces(), FvBaseThread::register_for_camera(), DirectRobotinoComThread::reset_odometry(), protoboard::ProtobufThead::send(), DirectRobotinoComThread::set_bumper_estop_enabled(), OpenRobotinoComThread::set_bumper_estop_enabled(), DirectRobotinoComThread::set_digital_output(), OpenRobotinoComThread::set_digital_output(), BBLoggerThread::set_enabled(), RefBoxCommThread::set_gamestate(), RefBoxCommThread::set_half(), DirectRobotinoComThread::set_motor_accel_limits(), RefBoxCommThread::set_score(), DirectRobotinoComThread::set_speed_points(), RefBoxCommThread::set_team_goal(), FvAcquisitionThread::set_vt_prepfin_hold(), MongoDBInstanceConfig::start_mongod(), JacoGotoThread::stop(), PlayerClientThread::sync_fawkes_to_player(), FvBaseThread::unregister_thread(), LuaAgentContinuousExecutionThread::write_interfaces(), and EclipseAgentThread::~EclipseAgentThread().