• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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 ......@:~
 
reply
    Bookmark Topic Watch Topic
  • New Topic