28 May 2010

Logback with slf4j

______________________________________________
From: Osman
Sent: Friday, May 28, 2010 2:21 PM
To:
Subject:Logback with slf4j


Hocam,

özellikle * koyduguğum özelliklerine hayran kaldım. yazarı Ceki Gülcü, slf4j ile birlikte logback kullanmayı tavsiye ediyor.




Faster implementation
Based on our previous work on log4j, logback internals have been re-written to perform about ten times faster on certain critical execution paths. Not only are logback components faster, they have a smaller memory footprint as 

logback-classic speaks SLF4J natively

Automatic reloading of configuration files

Filters*
With logback, you have the option of keeping logging at the WARN level for all users except for the one user, say Alice, who is responsible for identifying the problem.

SiftingAppender
SiftingAppender can separate logging events according to user sessions, so that the logs generated by each user go into distinct log files, one log file per user.

Automatic compression of archived log files
RollingFileAppender can automatically compress archived log files during rollover. Compression always occurs asynchronously so that even for large log files, your application is not blocked for the duration of the compressio

Automatic removal of old log archives

Conditional processing of configuration files*


Developers often need to juggle between several logback configuration files targeting different environments such as development, testing and production. These configuration files have substantial parts in common differing only in a few places. To avoid duplication, logback supports conditional processing of configuration files with the help of  and  elements so that a single configuration file can adequately target several environments.


For further info :) : http://logback.qos.ch/index.html

No comments: