in reply to Re: Turning off logging
in thread Turning off logging

Thanks !

I tried to use level:

in my module

$self->log-trace("this is useful for every users"): ... $self->log->debug("this is only useful during development");
In a file using this module
use Log::Any::Adapter( 'File', './log.txt', 'log_level'=>'trace' );

Strange is that I still get the debug info in the file...

How can I get only message send with trace ?

Am I understanging the levels in the wrong direction ?

Sorry, bare with me.

Thanks

F.

Replies are listed 'Best First'.
Re^3: Turning off logging
by hippo (Archbishop) on Nov 05, 2018 at 14:47 UTC
    Am I understanging the levels in the wrong direction ?

    I'm afraid so: trace is more verbose than debug. Switch them round and you should be good to go.