• 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 ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

slf4j logging issue - log file not getting generated

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using slf4j over java util logging. I am trying to place logging.properties file so that it will picked up by my webapp. The following is how my logging.properties file look like:



I am NOT doing -Djava.util.logging.config.file="file_path/logging.properties. Instead I have put the logging.properties in my WEB-INF/classes and included this folder as a class folder in eclipse. I dont know if this is sufficient for things to work.

The log file myApp.log is not getting generated nor any logging happens in it. But anyways, the logging still occurs on the Eclipse console.

I suspect it is not taking this logging.properties file at all. But then I tried a suggestion from the posting - Java Logging - where is my log file? - I can see that it prints the file path with file name.

I will appreciate if some help can be provided in this regard.

NOTE: I am using slf4j over java util logging. Also I am sorry if you think I didn't do enough google search :-)

Regards Mahesh
 
Mahesh Chandran
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Fixed the problem. Had to set -Djava.util.logging.config.file= "pathto\WEB-INF\classes\logging.properties in Arguments tab - Open Server->Open Launch Configuration in Eclipse
 
I am displeased. You are no longer allowed to read this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic