• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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: 43026
76
  • 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)?
 
No, tomorrow we rule the world! With this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic