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

log4j log file does not write to file

 
Ranch Hand
Posts: 620
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
i have simple setting of log4j.xml in my application under tomcat/webapps/MyApp/WEB-INF/classes
im pointing the log file to be printed to the tomcat logs directory , it does the job but the content of the printed log file looks like this :

13:39:23,201 DEBUG [WebXmlParser] Ignored node '#text' of type 3
13:39:23,201 DEBUG [WebXmlParser] Ignored node '#text' of type 3
13:39:23,201 DEBUG [WebXmlParser] Ignored node '#text' of type 3
13:39:23,201 DEBUG [WebXmlParser] Ignored node '#text' of type 3
13:39:23,201 DEBUG [WebXmlParser] Ignored node '#text' of type 3
13:39:23,201 DEBUG [WebXmlParser] Ignored node '#text' of type 3
13:39:23,201 DEBUG [WebXmlParser] Ignored node '#text' of type 3
13:39:23,201 INFO [StartupServletContextListener] ServletContext '/home/dev/prod/Tomcat/webapps/ROOT/' initialized
.
13:39:23,201 INFO [StartupServletContextListener] Serialization provider : class org.apache.myfaces.shared_impl.util.serial.D
efaultSerialFactory
13:39:23,202 DEBUG [[/]] Starting filters
13:39:23,203 DEBUG [JspRuntimeContext] Parent class loader is: WebappClassLoader^M
delegate: false^M
repositories:^M
/WEB-INF/classes/^M
----------> Parent Classloader:^M
org.apache.catalina.loader.StandardClassLoader@83b1b^M



and my log4j.xml looks like this:




why is my log file looks wrong and not printing logging info
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In what way are the contents of the log file incorrect? What did you expect to be there (or not be there)?
 
Hey, sticks and stones baby. And maybe a wee mention of my stuff:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic