Apache generic software packages (Commons Logging Package) Method of Use

  It provides an interface, users can select the interface to log after achieving the specific package.    (JDBC similar role with the need to consider the following What is the database.) Of the current log to achieve the specific package includes Log4j, jdk1.4 Logging, SimpleLog, NoOpLog.  .

  In the web log-in the use of a common need: 

  1. Documents related jar 

  Commons Logging Package common in the apache package can be downloaded from struts1.1 also includes the common log-commons-logging.jar, if the web use, it should be copied to the WEB-INF/lib directory. 

  2.commons-logging.properties properties file 

  3. Related to a concrete realization of the packet log file attributes, such as the use of the Log4j need a log4j.properties file attributes 

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Facebook
  • DotNetKicks
  • DZone
  • Netvouz
  • Propeller

Tags: , , , , ,

Releated Java Articles

Comments

Leave a Reply