Bu sayfanın seçili sürümü ile mevcut sürümü arasındaki farkları gösterir.
en:esya:log [2013/07/24 06:11] Dindar Öz |
en:esya:log [2013/07/24 06:15] (mevcut) Dindar Öz |
||
---|---|---|---|
Satır 3: | Satır 3: | ||
ESYA JAVA API uses SLF4J API for logging purposes. SLF4J provides capability to use several existing logging solutions rather than providing a single standalone log framework. | ESYA JAVA API uses SLF4J API for logging purposes. SLF4J provides capability to use several existing logging solutions rather than providing a single standalone log framework. | ||
- | To record logs, firstly a logging API supported by SLF4J must be used two examples of which are JUL (java.util.logging) and LOG4J.You can also use SLF4J's own API for logging. To use JUL, corresponding plug-in (slf4j-jdk14-<version>.jar) must be used. For LOG4J, the required plug-in is (slf4j-log4j12-<sürüm>.jar) and LOG4J library files must also be added to the project. The configuration of logging must be performed by the employed API's settings. | + | To record logs, firstly a logging API supported by SLF4J must be used two examples of which are JUL (java.util.logging) and LOG4J.You can also use SLF4J's own API for logging. To use JUL, corresponding plug-in (slf4j-jdk14-<version>.jar) must be used. For LOG4J, the required plug-in is (slf4j-log4j12-<version>.jar) and LOG4J library files must also be added to the project. The configuration of logging must be performed by the employed API's settings. |
As for LOG4J, you can specify the configuration file by PropertyConfigurator.configure("file_name") function call. | As for LOG4J, you can specify the configuration file by PropertyConfigurator.configure("file_name") function call. | ||
Satır 25: | Satır 25: | ||
# END APPENDER: ROLLING FILE APPENDER (rolling) | # END APPENDER: ROLLING FILE APPENDER (rolling) | ||
</sxh> | </sxh> | ||
- | Jul için, kullanılan jre’nin içindeki lib klasöründe logging.properties dosyası değiştirilerek log konfigürasyonu yapılabilir. | + | To configure JUL, the file "logging.properties" in the "lib" folder of the current JRE must be updated properly |
<sxh xml;title:Java> | <sxh xml;title:Java> | ||
handlers= java.util.logging.ConsoleHandler | handlers= java.util.logging.ConsoleHandler |