Apache General Software Package Usage Method

xiaoxiao2021-03-05  21

It provides an interface that implements the specific package of the log after free choosing this interface. (The role is similar to JDBC, and there is no need to consider what the following database is.) Currently realizes the specific packages of logs include log4j, jdk1.4 logging, simplelog, noplog. .

Using General Log Pack in Web requires:

1. Related JAR files

Commons Logging Package General Package can be downloaded in Apache, and Struts1.1 also contains universal log packs Commons-logging.jar. If you are using it in the web, you should copy it to the web-inf / lib directory.

2.Commons-logging.properties property file

3. Relevant specific identity files of the specific implementation of the log record, for example, using log4j, you need a log4j.properties property file

转载请注明原文地址:https://www.9cbs.com/read-32658.html

New Post(0)