• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Confusion in using Log4j

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ......@:~
 
It's just a flesh wound! Or a tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic