Search code examples
perllog4perl

How can I log only the INFO level in Log4perl?


log4perl has a threshold option in the configuration file that will log all calls that level or higher. Is there an option of setting it log only one type of call? I want to only log calls of level "INFO".

Thanks.


Solution

  • I think you can do it using a Log4Perl Filter. Use the LevelToMatch property to define which exact level needs to be matched.