robotology / gazebo-fmi

FMI import plugins for the Gazebo Simulator.
GNU Lesser General Public License v3.0
23 stars 5 forks source link

Logging enhancement #48

Closed triccyx closed 5 years ago

triccyx commented 5 years ago

Added the <verbose> global parameter in <plugin>. The parameter is used to have more verbose logging.

traversaro commented 5 years ago

Can you check the Travis failures? I guess the correct form for the information Gazebo logger is gzlog, not gzinfo as I incorrectly suggested.

triccyx commented 5 years ago

I would use gzmsg as it logs on consol (apparently)

/// \brief Output a message
#define gzmsg (gazebo::common::Console::msg())
/// \brief Output a debug message
#define gzdbg (gazebo::common::Console::dbg(__FILE__, __LINE__))
...

/// \brief Output a message to a log file
#define gzlog (gazebo::common::Console::log())
traversaro commented 5 years ago

Ok!