Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1089794

Summary: logging-profile not working in domain mode
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Anu Saji <asaji>
Component: LoggingAssignee: James Perkins <jperkins>
Status: CLOSED CURRENTRELEASE QA Contact: Nikoleta Hlavickova <nziakova>
Severity: unspecified Docs Contact: Russell Dickenson <rdickens>
Priority: unspecified    
Version: 6.1.0CC: dpospisi
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-04 09:37:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Application to be deployed, contains servlet that returns a statement none

Description Anu Saji 2014-04-22 02:42:24 UTC
Created attachment 888336 [details]
Application to be deployed, contains servlet that returns a statement

Description of problem:
************************
Logging-profile configuration as highlighted in [1] is not working for Domain mode.

[1] https://access.redhat.com/site/documentation/en-US/JBoss_Enterprise_Application_Platform/6.1/html/Administration_and_Configuration_Guide/Example_Logging_Profile_Configuration.html
Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
******************
1.

Create the logging-
/profile=full/subsystem=logging/logging-profile=test:add

/profile=full/subsystem=logging/logging-profile=test/periodic-rotating-file-handler=file:add(append=true,autoflush=true,file={path="extjars.${jboss.server.name}.log",relative-to="jboss.server.log.dir"}, suffix=".yyyyMMdd")

/profile=full/subsystem=logging/logging-profile=test/root-logger=ROOT:add(handlers=["file"])

2.

Deploy the attached "hello-world" application on the server onto the server-group with profile='full'

3.

Actual results:
***************
The log created to log application activities is created, but no logging information is captured into the below log
extjars.<server-name>.log
instead logging information remains in server.log
ie everytime  the application is accessed.
 
http://localhost:8080/jboss-helloworld/HelloWorld
 

Expected results:
******************
the below logging should be in the log named extjars.<server-name>.log  and not in server.log 
~~~

11:25:33,914 INFO  [org.jboss.as.quickstarts.helloworld.HelloService] (http-localhost.localdomain/127.0.0.1:8080-1) This is a test
11:25:56,744 INFO  [org.jboss.as.quickstarts.helloworld.HelloService] (http-localhost.localdomain/127.0.0.1:8080-1) This is a test
11:26:11,641 INFO  [org.jboss.as.quickstarts.helloworld.HelloService] (http-localhost.localdomain/127.0.0.1:8080-1) This is a test
11:26:15,382 INFO  [org.jboss.as.quickstarts.helloworld.HelloService] (http-localhost.localdomain/127.0.0.1:8080-1) This is a test

~~~

Additional info:

Comment 1 Anu Saji 2014-04-22 05:46:31 UTC
Would be good to get a workaround for this issue in EAP 6.1.0
 
Tested EAP 6.1.1 , there are no issues here.

Comment 2 Anu Saji 2014-04-23 01:12:29 UTC
retesting the testcase in eap 6.1.0 shows logging-profile is working fine in domain mode aswell.
I will keep this BZ open for few more days ie. to hear back from the customer.

Comment 5 Dominik Pospisil 2014-08-04 09:37:19 UTC
Closing based on above comments.