Hi,
I am trying to log with the RTT::Never. I thought this was not printing
anything anywhere. It happens that my log appears in orocos.log. Is it done
on purpose ?
A RTT::log(RTT::Info) << "update" << RTT::endlog() shows :
84.295 [ Info ][Logger] update
A RTT::log(RTT::Never) << "update" << RTT::endlog() shows :
133.425 [Logger] update
Using the OROBLD_DISABLE_LOGGING is not enougth as I am disabling logs on a
per component basis at runtime with a property when I have a component that
is publishing too often so it prevents from debugging others.
Is it a bug ? or should I use something else ?
Log RTT::Never level
On Wed, May 2, 2012 at 6:30 PM, Willy Lambert <lambert [dot] willy [..] ...> wrote:
> Hi,
>
> I am trying to log with the RTT::Never. I thought this was not printing
> anything anywhere. It happens that my log appears in orocos.log. Is it done
> on purpose ?
>
> A RTT::log(RTT::Info) << "update" << RTT::endlog() shows :
> 84.295 [ Info ][Logger] update
>
>
> A RTT::log(RTT::Never) << "update" << RTT::endlog() shows :
> 133.425 [Logger] update
>
>
> Using the OROBLD_DISABLE_LOGGING is not enougth as I am disabling logs on a
> per component basis at runtime with a property when I have a component that
> is publishing too often so it prevents from debugging others.
>
> Is it a bug ? or should I use something else ?
The OCL logging infrastructure :-) The Never level is interpreted
differently as the other levels. It was up to now only used in the
environment variable, so you'll have to patch RTT to check for it also
during logging.
It seems to me you're rebuilding the OCL logging, which is unwise
since the OCL one has all the features you need.
Peter
Log RTT::Never level
2012/5/3 Peter Soetens <peter [..] ...>
> On Wed, May 2, 2012 at 6:30 PM, Willy Lambert <lambert [dot] willy [..] ...>
> wrote:
> > Hi,
> >
> > I am trying to log with the RTT::Never. I thought this was not printing
> > anything anywhere. It happens that my log appears in orocos.log. Is it
> done
> > on purpose ?
> >
> > A RTT::log(RTT::Info) << "update" << RTT::endlog() shows :
> > 84.295 [ Info ][Logger] update
> >
> >
> > A RTT::log(RTT::Never) << "update" << RTT::endlog() shows :
> > 133.425 [Logger] update
> >
> >
> > Using the OROBLD_DISABLE_LOGGING is not enougth as I am disabling logs
> on a
> > per component basis at runtime with a property when I have a component
> that
> > is publishing too often so it prevents from debugging others.
> >
> > Is it a bug ? or should I use something else ?
>
> The OCL logging infrastructure :-) The Never level is interpreted
> differently as the other levels. It was up to now only used in the
> environment variable, so you'll have to patch RTT to check for it also
> during logging.
>
> It seems to me you're rebuilding the OCL logging, which is unwise
> since the OCL one has all the features you need.
>
>
It's a one line workaround from early 2.0 versions. I had problems with the
OCL logging at this time. I just never had to go back to this.
So I'll switch for Ocl logger soon
thanks
> Peter
>