[
https://issues.jboss.org/browse/LOGMGR-131?page=com.atlassian.jira.plugin...
]
James Perkins commented on LOGMGR-131:
--------------------------------------
It looks like the {{StackTraceElement.toString()}} will already include the module and
version.
{code:java}
public String toString() {
String mid = "";
if (moduleName != null) {
mid = moduleName;
if (moduleVersion != null)
mid += "@" + moduleVersion;
mid += "/";
}
return getClassName() + "." + methodName + "(" + mid +
(isNativeMethod() ? "Native Method)" :
(fileName != null && lineNumber >= 0 ?
fileName + ":" + lineNumber + ")" :
(fileName != null ? ""+fileName+")" : "Unknown
Source)")));
}
{code}
Do we still want format options for it?
Add format characters for module name, module version
-----------------------------------------------------
Key: LOGMGR-131
URL:
https://issues.jboss.org/browse/LOGMGR-131
Project: JBoss Log Manager
Issue Type: Sub-task
Reporter: David Lloyd
Fix For: 2.1.0.Beta1
In JDK9, StackTraceElements contain moduleName and moduleVersion fields. This
information is useful for debugging purposes, thus format characters should be allocated
towards these values. Ideally it'll be something non-conflicting with respect to
log4j and other common ancestor/related frameworks, but that is less important than the
basic support.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)