Bug 1007705 - Installer: Logging change won't affect standalone full, ha and full-ha profiles
Summary: Installer: Logging change won't affect standalone full, ha and full-ha profiles
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Installer
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ER3
: EAP 6.2.0
Assignee: Thomas Hauser
QA Contact: Petr Kremensky
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-13 07:36 UTC by Petr Kremensky
Modified: 2017-10-10 00:18 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-15 16:23:33 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 900599 0 medium CLOSED Add setting the log level in the installer 2021-02-22 00:41:40 UTC

Internal Links: 900599

Description Petr Kremensky 2013-09-13 07:36:09 UTC
Log level change during installation will affect only standalone.xml and domain.xml. Other standalone profiles (standalone-full.xml, standalone-ha.xml and standalone-full-ha.xml) are left with out-of-box logging configuration.

There is also periodic-rotating-file-handler in out-of-box logging configuration, it would be nice to have chance to configure also this one.

Version-Release number of selected component (if applicable):
EAP 6.2.0.ER1

Additional info:
This is a new feature in EAP 6.2.0

Comment 1 Thomas Hauser 2013-09-13 13:42:57 UTC
Hello Petr,

The other files will have their logging settings changed as well.

About the rotating log, Let's see how easy adding the config for this is. Which config options should we offer up for configuration? I see this: 
<periodic-rotating-file-handler name="FILE" autoflush="true">
 <formatter>
  <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
 </formatter>
 <file relative-to="jboss.server.log.dir" path="server.log"/>
 <suffix value=".yyyy-MM-dd"/>
 <append value="true"/>
</periodic-rotating-file-handler>

but we'd need to define which of these values are good to offer up for configuration. The pattern-formatter element, for example, seems like it would require a lot of new validation work for any custom value. 

Thanks,
Tom

Comment 2 Petr Kremensky 2013-09-13 13:58:36 UTC
Hi Tom,
yes I agree with you on this. 

I also looked to config file and periodic-rotating handler uses the default logging level (ALL) and once default option is used, it is, in most of cases, not reflected to xml file. 

I guess we can go on with configuration of root logger and console logger only.

Petr

Comment 3 Thomas Hauser 2013-09-13 18:06:10 UTC
How about standalone-osgi.xml?

Comment 4 Petr Kremensky 2013-09-13 18:39:01 UTC
AFAIK this one is not supported anymore. I will get more info on this and let you know next week.

Comment 5 Thomas Hauser 2013-09-13 18:49:14 UTC
Fix applied in branch with commitid 27d1869a24eb257693d9df589b71b1465ac3803a. 

If we want standalone-osgi.xml to be modified as well that can be added with minimal effort.

Comment 6 Petr Kremensky 2013-09-16 06:12:03 UTC
It's OK to go on without OSGI.

Comment 7 Petr Kremensky 2013-09-30 07:19:02 UTC
Please move all BZs ready for verification to ON_QA once the target milestone was released, thanks. 

Verified on EAP 6.2.0.ER3


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