• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Confusion in using Log4j

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 ......@:~
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!