[Rock-dev] Default log-level for ruby

Sylvain Joyeux sylvain.joyeux at dfki.de
Mon Nov 26 11:28:04 CET 2012


On 11/26/2012 11:12 AM, Jakob Schwendner wrote:
> On 11/26/2012 11:04 AM, Sylvain Joyeux wrote:
>> On 11/26/2012 10:48 AM, Jakob Schwendner wrote:
>>> Hi,
>>>
>>> I've just added a small patch to utilrb, which uses the BASE_LOG_LEVEL
>>> value as the default log-level for the Ruby Logger class. So now you
>>> don't have to change your ruby script to change the log level, and you
>>> can just do
>>>
>>> BASE_LOG_LEVEL=DEBUG ruby yourscript.rb
>> We could set ORO_LOGLEVEL in orocos.rb based on this value (if it is 
>> set). Thoughts ?
>>
> I'd be all for it to have a single switch for the log level. Is the 
> orocos logging actually used? I thought we use base::logging everywhere.
It is used by the RTT itself, which is sometimes useful to have.

Sylvain


More information about the Rock-dev mailing list