Log4j.xml

From Plex-XML
Jump to: navigation, search

Apache log4j is a Java-based logging utility. It is also used by the Tomcat Server.
You are able to adjust the level for each logger to your needs. With an Ant variable you are able to define a different log level for e.g. development and production.

Be sure to set the right log level for production environments because intensive logging can be very time consuming.


Your project specific log4j.xml file in your Eclipse project is at:

../deployment/log4j.xml

General logger configuration

<logger name="org.apache">
 <level value="WARN"/>
</logger>

Plex-XML logger

  • <logger name="de.allabout.basics">
    • DEBUG: write debug infos of LoginFilter and (some) Translation Lookups from XSLTs to the application log file
  • <logger name="de.bodow">
    • WARN: write some Plex-XML API messages to the application log file ( should be Default)
    • DEBUG: only useful for debugging, since a lot of infos are written
  • <logger name="de.bodow.app.Updater">
    • example for fine-tuning the logging, defines a own log level for this class
  • <logger name="de.bodow.web.ControlServlet">
    • DEBUG: Servlet infos will written to the application log file
    • INFO: Servlet infos will written to the application log file
  • <logger name="request-log">
    • DEBUG: request.xml and response.xml files will be written to your TomCat temp directory
  • <logger name="response-log">
    • DEBUG: request..doc.xml files will be written to your TomCat temp directory
  • <logger name="plexperformance">
    • INFO: Plex-XML performance infos ( e.g. START and END of Plex Function call )will written to the application log file

Links

Application log example

2007-09-11 18:56:27,776 INFO  [de.bodow.web.ControlServlet] START a Webrequest 
2007-09-11 18:56:27,776 DEBUG [de.bodow.web.ControlServlet] checking FileUpload
2007-09-11 18:56:27,776 DEBUG [de.bodow.web.ControlServlet] end checking FileUpload
2007-09-11 18:56:27,776 DEBUG [de.bodow.web.ControlServlet] --------- START REQUEST HEADERS -----------
2007-09-11 18:56:27,776 DEBUG [de.bodow.web.ControlServlet] host=127.0.0.1
2007-09-11 18:56:27,776 DEBUG [de.bodow.web.ControlServlet] user-agent=Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6
2007-09-11 18:56:27,776 DEBUG [de.bodow.web.ControlServlet] accept=text/javascript, text/html, application/xml, text/xml, */*
2007-09-11 18:56:27,776 DEBUG [de.bodow.web.ControlServlet] accept-language=en,de;q=0.7,en-us;q=0.3
2007-09-11 18:56:27,776 DEBUG [de.bodow.web.ControlServlet] accept-encoding=gzip,deflate
2007-09-11 18:56:27,776 DEBUG [de.bodow.web.ControlServlet] accept-charset=ISO-8859-1,utf-8;q=0.7,*;q=0.7
2007-09-11 18:56:27,776 DEBUG [de.bodow.web.ControlServlet] keep-alive=300
2007-09-11 18:56:27,776 DEBUG [de.bodow.web.ControlServlet] connection=keep-alive
2007-09-11 18:56:27,776 DEBUG [de.bodow.web.ControlServlet] x-requested-with=XMLHttpRequest
2007-09-11 18:56:27,776 DEBUG [de.bodow.web.ControlServlet] x-prototype-version=1.5.1
2007-09-11 18:56:27,776 DEBUG [de.bodow.web.ControlServlet] referer=http://127.0.0.1/tutorial/aServlet
2007-09-11 18:56:27,776 DEBUG [de.bodow.web.ControlServlet] cookie=rememberme=false; userid=test; JSESSIONID=E7E424CFEE5A1E258E7400B555D2FB73; __utma=96992031.1780481183.1143456676.1188983732.1188988530.505; __utmz=96992031.1178878319.391.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)
2007-09-11 18:56:27,777 DEBUG [de.bodow.web.ControlServlet] --------- END REQUEST PARAMETERS -------------
2007-09-11 18:56:27,777 INFO  [de.bodow.web.ControlServlet]  Webrequest name is ValidateUserAjax
2007-09-11 18:56:27,777 DEBUG [de.bodow.web.ControlServlet] session.locale='en'
2007-09-11 18:56:27,779 INFO  [plexperformance] UserIdentifier.XML_Intern.ExtraS- START
2007-09-11 18:56:27,779 INFO  [plexperformance] Session.BusinessExtraFunctions.ValidateSession- START
2007-09-11 18:56:27,779 INFO  [plexperformance] Session.BusinessExtraFunctions.GetSessionData- START
2007-09-11 18:56:27,780 INFO  [plexperformance] Session.BusinessExtraFunctions.GetSessionData- END
2007-09-11 18:56:27,780 INFO  [plexperformance] SystemParameter.BusinessExtraFunctions.GetSystemParameterClient- START
2007-09-11 18:56:27,780 INFO  [plexperformance] SystemParameter.BusinessExtraFunctions.GetSystemParameterClient- END
2007-09-11 18:56:27,781 INFO  [plexperformance] Session.BusinessExtraFunctions.SetSessionData- START
2007-09-11 18:56:27,785 INFO  [plexperformance] SystemParameter.BusinessExtraFunctions.GetSystemParameterClient- START
2007-09-11 18:56:27,800 INFO  [plexperformance] SystemParameter.BusinessExtraFunctions.GetSystemParameterClient- END
2007-09-11 18:56:27,800 INFO  [plexperformance] Session.BusinessExtraFunctions.SetSessionData- END
2007-09-11 18:56:27,801 INFO  [plexperformance] Session.BusinessExtraFunctions.ValidateSession- END
2007-09-11 18:56:27,801 INFO  [plexperformance] Session.BusinessExtraFunctions.RemoveSessionCache- START
2007-09-11 18:56:27,801 INFO  [plexperformance] Session.BusinessExtraFunctions.RemoveSessionCache- END
2007-09-11 18:56:27,801 INFO  [plexperformance] Function.BusinessExtraFunctions.CheckAndCreateRegistrationCache- START
2007-09-11 18:56:27,805 INFO  [plexperformance] Function.BusinessExtraFunctions.CheckAndCreateRegistrationCache- END
2007-09-11 18:56:27,806 INFO  [plexperformance] Function_Format.BusinessExtraFunctions.CheckFunctionFormat- START
2007-09-11 18:56:27,815 INFO  [plexperformance] Function_Format.BusinessExtraFunctions.CheckFunctionFormat- END
2007-09-11 18:56:27,818 INFO  [plexperformance] Format_FieldDetail.BusinessExtraFunctions.GetFunctionDetails- START
...
Personal tools