Bug 994744 - Improve LogManager formatter capability: System properties, thread ID and minified category
Summary: Improve LogManager formatter capability: System properties, thread ID and min...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Logging
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ER1
: EAP 6.3.0
Assignee: James Perkins
QA Contact: Nikoleta Hlavickova
Russell Dickenson
URL:
Whiteboard:
Depends On: 994700
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-07 23:42 UTC by Kyle Lape
Modified: 2018-12-02 16:55 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-09-16 18:08:13 UTC
Type: Feature Request
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker LOGMGR-67 0 Major Resolved Improve LogManager formatter capability: System resources, thread ID and minified category 2014-09-09 09:05:37 UTC
Red Hat Issue Tracker PRODMGT-413 0 Major Closed Improve formatter capability: System resources, thread ID and minified category 2014-09-09 09:05:37 UTC
Red Hat Issue Tracker WFCORE-110 0 Minor Open Property expressions resolved before the PatternFormatter can resolve them 2014-09-16 18:08:13 UTC

Description Kyle Lape 2013-08-07 23:42:35 UTC
This would include three things:

- Hostname: We haven't find a way to get the hostname displayed in the logs. A
  simple solution would be to include System properties and therefore the
  jboss.host.name property in the pattern.

- Thread ID: Thread names are too long and of different length that disturb the
  reading of logs

- Minified log categories: Logback has a feature that lets you minify the log
  category: instead of org.jboss.logmanager.config.ConfigAction you'll get
  o.j.l.c.ConfigAction which is more readable in the logs.

An implementation should match the formatting of the same feature in existing
logging frameworks to avoid end-user confusion.

Comment 1 JBoss JIRA Server 2013-09-04 03:38:04 UTC
James Perkins <jperkins> made a comment on jira LOGMGR-67

Pull request merged

Comment 6 Ondrej Lukas 2013-10-07 10:55:11 UTC
Unfortunatelly verification failed. Thread ID and Minified log categories are ok, but setting system property works bad. If I add %${test.property} to formatter and start server with -Dtest.property=property that use "p" from word property as %p and then log of that part looks like INFOroperty.

Comment 7 James Perkins 2013-10-07 16:59:18 UTC
Looks like the expression is attempting to be resolved by server instead of allowing the logmanager to resovle the expression.

Comment 10 James Perkins 2014-09-16 18:08:13 UTC
Closing this as it mostly works in the current release. The one caveat is the system properties do not work properly. The support has been added to the log manager, but the way that expressions are parsed for attributes the system property is resolved before the value is passed to the log manager. See https://issues.jboss.org/browse/WFCORE-110 for more details.


Note You need to log in before you can comment on or make changes to this bug.