DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17920>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17920 Option to offset the stack frame used in PatternLayout's file and line numbering Summary: Option to offset the stack frame used in PatternLayout's file and line numbering Product: Log4j Version: 1.2 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Enhancement Priority: Other Component: Layout AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] We have a large project with an existing logging framework, and are moving over to using LOG4J for logging. We are doing this by changing our existing logging module to wrap LOG4J. One disadvantage of wrapping LOG4J this way is that line numbers and files printed using PatternLayout's %F and %L directives will now refer to the line in our logging module that called LOG4J, as this is always constant in our case, this information isn't very useful. It would be useful if there was a configuraion option to offset the line in the stack frame from where this information is collected to support systems that make all calls to LOG4J from single wrapper. For example, for a stack trace such as: java.lang.Throwable ... at org.apache.log4j.PatternLayout.format(PatternLayout.java:413) at org.apache.log4j.FileAppender.doAppend(FileAppender.java:183) at org.apache.log4j.Category.callAppenders(Category.java:131) at org.apache.log4j.Category.log(Category.java:512) + at other.logging.module.Logger.log(OtherLogger.java:33) * at callers.fully.qualified.className.methodName(FileName.java:74) The line marked (*) could be used to produce location information, if the stacktrace offset was 1, rather than the default line marked (+). Dave. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]