• Post Reply Bookmark Topic Watch Topic
  • New Topic

Confusion in using Log4j  RSS feed

Raziuddin Mohd
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi all,
Am a fresher with logj4 and trying to configure my properties file.
My question is that how can i log differrent priorities of messages to different files using categories and appenders. help would me greatly appreciated.
This is my properties file. I ma not able to get the desired output even if i use a threshold value. Can anyone please explain me where i am going wrong???

This the code i am using for Java file---

And this is the properties file i have used to configure the log4j -

Now here's what i want --
ALL DEBUG messages should go to Debug.log...
All INFO messages should go to Info.log
All WARN messages should go to Warn.log
All ERROR messages should go to Error.log.... and so on ......@:~
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!