
Hello, In log4j LocationInfo was an attribute of several appenders (e.g. Socket, SMTP) to determine whether the 'expensive' location info should be determined. I couldn't find this attribute anymore in logback, what is logback's approach to this? I understand that for e.g. SMTPAppender this info could be derived from its contained Layout, but what about SocketAppender? cheers, dirk

Hi Dirk, The attribute still exists. However, it is now called "IncludeCallerData". SocketAppender has this attribute while JMS(Queue|Topic)Appender don't (although they should). DBAppender always includes called data, since comparatively computing caller data is much faster than inserting into a DB. Does this help? dirk ooms wrote:
Hello,
In log4j LocationInfo was an attribute of several appenders (e.g. Socket, SMTP) to determine whether the 'expensive' location info should be determined. I couldn't find this attribute anymore in logback, what is logback's approach to this? I understand that for e.g. SMTPAppender this info could be derived from its contained Layout, but what about SocketAppender?
-- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch
participants (2)
-
Ceki Gulcu
-
dirk ooms