![]() |
|
|
Issue Type:
|
Improvement
|
Affects Versions:
|
1.1.3 |
Assignee:
|
Logback dev list
|
Components:
|
logback-classic |
Created:
|
15/Sep/15 6:34 PM
|
Description:
|
The following converter (pattern) use CallerData to get the first stack trace element.
- ClassOfCallerConverter
- MethodOfCallerConverter
- LineOfCallerConverter
- FileOfCallerConverter
If I want to extend the SubstituteLogger to add utility methods then the first element of the stack will always be SubstituteLogger.
I think Logback should ignore SubstituteLogger from the stack trace element and take the next element.
<code>
for (StackTraceElement stackTraceElement : callerData) {
if (SubstituteLogger.class.getName().equals(stackTraceElement.getClassName()))
{
continue;
}
return stackTraceElement;
}
</code>
I know that I can create a custom layout or extend PatternLayout to replace the converter but I think Logback should do that by default.
|
Project:
|
logback
|
Labels:
|
pattern
layouts
|
Priority:
|
Major
|
Reporter:
|
Guillaume Grossetie
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
_______________________________________________
logback-dev mailing list
logback-dev@qos.ch
http://mailman.qos.ch/mailman/listinfo/logback-dev