Michael Shnitzer
Michael Shnitzer

Reputation: 2505

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.

Upvotes: 4

Views: 180

Answers (1)

mopoke
mopoke

Reputation: 10685

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

Upvotes: 7

Related Questions