[
https://issues.jboss.org/browse/WFLY-6797?page=com.atlassian.jira.plugin....
]
Preeta Kuruvilla updated WFLY-6797:
-----------------------------------
Description:
I have "ha" profile in my domain.xml which has many subsystems.
Below is the structure I have:-
{color:#205081}<server-groups>
<server-group name="main-server-group" profile="ha">
<socket-binding-group ref="ha-sockets"/>
<deployments>
<deployment name="RC.war"
runtime-name="RC.war"/>
</deployments>
</server-group>
<server-group name="other-server-group" profile="ha">
<socket-binding-group ref="standard-sockets"/>
<deployments>
<deployment name="SL.war"
runtime-name="SL.war"/>
</deployments>
</server-group>
</server-groups>{color}
There is a logging subsystem which needs to be different for RC.war and SL.war. Both
RC.war and SL.war belong to same profile.
Is there a way to have 2 logging related subsystems defined in "ha" profile,
such that RC can point to one and SL to the other although they belong to same profile?
Example:-
RC.war needs to use the below:-
{color:#205081}<subsystem
xmlns="urn:jboss:domain:logging:2.0">
<console-handler name="CONSOLE">
<level name="INFO"/>
<formatter>
<named-formatter name="COLOR-PATTERN"/>
</formatter>
</console-handler>
<logger category="com.arjuna">
<level name="WARN"/>
</logger>
<logger category="org.apache.tomcat.util.modeler">
<level name="WARN"/>
</logger>
<logger category="org.jboss.as.config">
<level name="DEBUG"/>
</logger>
<logger category="sun.rmi">
<level name="WARN"/>
</logger>
<logger category="jacorb">
<level name="WARN"/>
</logger>
<logger category="jacorb.config">
<level name="ERROR"/>
</logger>
<root-logger>
<level name="INFO"/>
<handlers>
<handler name="CONSOLE"/>
<handler name="FILE"/>
</handlers>
</root-logger>
<formatter name="PATTERN">
<pattern-formatter pattern="%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p
[%c] (%t) %s%E%n"/>
</formatter>
<formatter name="COLOR-PATTERN">
<pattern-formatter pattern="%K{level}%d{HH:mm:ss,SSS} %-5p
[%c] (%t) %s%E%n"/>
</formatter>
</subsystem>
{color}
while SL.war needs to use the below:-
{color:#205081}<subsystem
xmlns="urn:jboss:domain:logging:2.0">
<console-handler name="CONSOLE">
<level name="INFO"/>
<formatter>
<named-formatter name="COLOR-PATTERN"/>
</formatter>
</console-handler>
<periodic-rotating-file-handler name="ISEE">
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t)
%s%E%n"/>
</formatter>
<file relative-to="jboss.server.log.dir"
path="isee.log"/>
<suffix value=".yyyy-MM-dd"/>
<append value="false"/>
</periodic-rotating-file-handler>
<periodic-rotating-file-handler name="FILE_ADAPTER">
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t)
%s%E%n"/>
</formatter>
<file relative-to="jboss.server.log.dir"
path="fileadapter.log"/>
<suffix value=".yyyy-MM-dd"/>
<append value="false"/>
</periodic-rotating-file-handler>
<periodic-rotating-file-handler name="DB_ADAPTER">
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t)
%s%E%n"/>
</formatter>
<file relative-to="jboss.server.log.dir"
path="dbadapter.log"/>
<suffix value=".yyyy-MM-dd"/>
<append value="false"/>
</periodic-rotating-file-handler>
<periodic-rotating-file-handler name="MQ_ADAPTER">
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t)
%s%E%n"/>
</formatter>
<file relative-to="jboss.server.log.dir"
path="mqadapter.log"/>
<suffix value=".yyyy-MM-dd"/>
<append value="false"/>
</periodic-rotating-file-handler>
<periodic-rotating-file-handler name="JMS_ADAPTER">
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t)
%s%E%n"/>
</formatter>
<file relative-to="jboss.server.log.dir"
path="jmsadapter.log"/>
<suffix value=".yyyy-MM-dd"/>
<append value="false"/>
</periodic-rotating-file-handler>
<periodic-rotating-file-handler name="HTTP_ADAPTER">
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t)
%s%E%n"/>
</formatter>
<file relative-to="jboss.server.log.dir"
path="httpadapter.log"/>
<suffix value=".yyyy-MM-dd"/>
<append value="false"/>
</periodic-rotating-file-handler>
<periodic-rotating-file-handler name="VMWARE_ADAPTER">
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t)
%s%E%n"/>
</formatter>
<file relative-to="jboss.server.log.dir"
path="vmwareadapter.log"/>
<suffix value=".yyyy-MM-dd"/>
<append value="false"/>
</periodic-rotating-file-handler>
<periodic-rotating-file-handler name="WSLISTENER_ADAPTER">
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t)
%s%E%n"/>
</formatter>
<file relative-to="jboss.server.log.dir"
path="wslisteneradapter.log"/>
<suffix value=".yyyy-MM-dd"/>
<append value="false"/>
</periodic-rotating-file-handler>
<periodic-rotating-file-handler
name="SERVICEITEMLISTENER_ADAPTER">
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t)
%s%E%n"/>
</formatter>
<file relative-to="jboss.server.log.dir"
path="serviceitemlisteneradapter.log"/>
<suffix value=".yyyy-MM-dd"/>
<append value="false"/>
</periodic-rotating-file-handler>
<periodic-rotating-file-handler name="VSOC_ADAPTER">
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t)
%s%E%n"/>
</formatter>
<file relative-to="jboss.server.log.dir"
path="vsocadapter.log"/>
<suffix value=".yyyy-MM-dd"/>
<append value="false"/>
</periodic-rotating-file-handler>
<periodic-rotating-file-handler name="CLOUD_ADAPTER">
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t)
%s%E%n"/>
</formatter>
<file relative-to="jboss.server.log.dir"
path="cloudadapter.log"/>
<suffix value=".yyyy-MM-dd"/>
<append value="false"/>
</periodic-rotating-file-handler>
<logger category="com.arjuna">
<level name="WARN"/>
</logger>
<logger category="org.apache.tomcat.util.modeler">
<level name="WARN"/>
</logger>
<logger category="org.jboss.as.config">
<level name="DEBUG"/>
</logger>
<logger category="sun.rmi">
<level name="WARN"/>
</logger>
<logger category="jacorb">
<level name="WARN"/>
</logger>
<logger category="jacorb.config">
<level name="ERROR"/>
</logger>
<root-logger>
<level name="INFO"/>
<handlers>
<handler name="CONSOLE"/>
<handler name="FILE"/>
</handlers>
</root-logger>
<formatter name="PATTERN">
<pattern-formatter pattern="%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p
[%c] (%t) %s%E%n"/>
</formatter>
<formatter name="COLOR-PATTERN">
<pattern-formatter pattern="%K{level}%d{HH:mm:ss,SSS} %-5p
[%c] (%t) %s%E%n"/>
</formatter>
</subsystem>{color}
Thanks,
Preeta
was:
I have "ha" profile in my domain.xml which has many subsystems.
Below is the structure I have:-
<server-groups>
<server-group name="main-server-group" profile="ha">
<socket-binding-group ref="ha-sockets"/>
<deployments>
<deployment name="RC.war"
runtime-name="RC.war"/>
</deployments>
</server-group>
<server-group name="other-server-group" profile="ha">
<socket-binding-group ref="standard-sockets"/>
<deployments>
<deployment name="SL.war"
runtime-name="SL.war"/>
</deployments>
</server-group>
</server-groups>
There is a logging subsystem which needs to be different for RC.war and SL.war. Both
RC.war and SL.war belong to same profile.
Is there a way to have 2 logging related subsystems defined in "ha" profile,
such that RC can point to one and SL to the other although they belong to same profile?
Thanks,
Preeta
Is there a way to have more than one logging subystem belonging to
one profile
------------------------------------------------------------------------------
Key: WFLY-6797
URL:
https://issues.jboss.org/browse/WFLY-6797
Project: WildFly
Issue Type: Task
Components: Domain Management
Affects Versions: 8.2.0.Final
Reporter: Preeta Kuruvilla
Assignee: Brian Stansberry
I have "ha" profile in my domain.xml which has many subsystems.
Below is the structure I have:-
{color:#205081}<server-groups>
<server-group name="main-server-group" profile="ha">
<socket-binding-group ref="ha-sockets"/>
<deployments>
<deployment name="RC.war"
runtime-name="RC.war"/>
</deployments>
</server-group>
<server-group name="other-server-group" profile="ha">
<socket-binding-group ref="standard-sockets"/>
<deployments>
<deployment name="SL.war"
runtime-name="SL.war"/>
</deployments>
</server-group>
</server-groups>{color}
There is a logging subsystem which needs to be different for RC.war and SL.war. Both
RC.war and SL.war belong to same profile.
Is there a way to have 2 logging related subsystems defined in "ha" profile,
such that RC can point to one and SL to the other although they belong to same profile?
Example:-
RC.war needs to use the below:-
{color:#205081}<subsystem
xmlns="urn:jboss:domain:logging:2.0">
<console-handler name="CONSOLE">
<level name="INFO"/>
<formatter>
<named-formatter name="COLOR-PATTERN"/>
</formatter>
</console-handler>
<logger category="com.arjuna">
<level name="WARN"/>
</logger>
<logger category="org.apache.tomcat.util.modeler">
<level name="WARN"/>
</logger>
<logger category="org.jboss.as.config">
<level name="DEBUG"/>
</logger>
<logger category="sun.rmi">
<level name="WARN"/>
</logger>
<logger category="jacorb">
<level name="WARN"/>
</logger>
<logger category="jacorb.config">
<level name="ERROR"/>
</logger>
<root-logger>
<level name="INFO"/>
<handlers>
<handler name="CONSOLE"/>
<handler name="FILE"/>
</handlers>
</root-logger>
<formatter name="PATTERN">
<pattern-formatter pattern="%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p
[%c] (%t) %s%E%n"/>
</formatter>
<formatter name="COLOR-PATTERN">
<pattern-formatter pattern="%K{level}%d{HH:mm:ss,SSS} %-5p
[%c] (%t) %s%E%n"/>
</formatter>
</subsystem>
{color}
while SL.war needs to use the below:-
{color:#205081}<subsystem
xmlns="urn:jboss:domain:logging:2.0">
<console-handler name="CONSOLE">
<level name="INFO"/>
<formatter>
<named-formatter name="COLOR-PATTERN"/>
</formatter>
</console-handler>
<periodic-rotating-file-handler name="ISEE">
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t)
%s%E%n"/>
</formatter>
<file relative-to="jboss.server.log.dir"
path="isee.log"/>
<suffix value=".yyyy-MM-dd"/>
<append value="false"/>
</periodic-rotating-file-handler>
<periodic-rotating-file-handler name="FILE_ADAPTER">
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t)
%s%E%n"/>
</formatter>
<file relative-to="jboss.server.log.dir"
path="fileadapter.log"/>
<suffix value=".yyyy-MM-dd"/>
<append value="false"/>
</periodic-rotating-file-handler>
<periodic-rotating-file-handler name="DB_ADAPTER">
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t)
%s%E%n"/>
</formatter>
<file relative-to="jboss.server.log.dir"
path="dbadapter.log"/>
<suffix value=".yyyy-MM-dd"/>
<append value="false"/>
</periodic-rotating-file-handler>
<periodic-rotating-file-handler name="MQ_ADAPTER">
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t)
%s%E%n"/>
</formatter>
<file relative-to="jboss.server.log.dir"
path="mqadapter.log"/>
<suffix value=".yyyy-MM-dd"/>
<append value="false"/>
</periodic-rotating-file-handler>
<periodic-rotating-file-handler name="JMS_ADAPTER">
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t)
%s%E%n"/>
</formatter>
<file relative-to="jboss.server.log.dir"
path="jmsadapter.log"/>
<suffix value=".yyyy-MM-dd"/>
<append value="false"/>
</periodic-rotating-file-handler>
<periodic-rotating-file-handler name="HTTP_ADAPTER">
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t)
%s%E%n"/>
</formatter>
<file relative-to="jboss.server.log.dir"
path="httpadapter.log"/>
<suffix value=".yyyy-MM-dd"/>
<append value="false"/>
</periodic-rotating-file-handler>
<periodic-rotating-file-handler name="VMWARE_ADAPTER">
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t)
%s%E%n"/>
</formatter>
<file relative-to="jboss.server.log.dir"
path="vmwareadapter.log"/>
<suffix value=".yyyy-MM-dd"/>
<append value="false"/>
</periodic-rotating-file-handler>
<periodic-rotating-file-handler name="WSLISTENER_ADAPTER">
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t)
%s%E%n"/>
</formatter>
<file relative-to="jboss.server.log.dir"
path="wslisteneradapter.log"/>
<suffix value=".yyyy-MM-dd"/>
<append value="false"/>
</periodic-rotating-file-handler>
<periodic-rotating-file-handler
name="SERVICEITEMLISTENER_ADAPTER">
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t)
%s%E%n"/>
</formatter>
<file relative-to="jboss.server.log.dir"
path="serviceitemlisteneradapter.log"/>
<suffix value=".yyyy-MM-dd"/>
<append value="false"/>
</periodic-rotating-file-handler>
<periodic-rotating-file-handler name="VSOC_ADAPTER">
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t)
%s%E%n"/>
</formatter>
<file relative-to="jboss.server.log.dir"
path="vsocadapter.log"/>
<suffix value=".yyyy-MM-dd"/>
<append value="false"/>
</periodic-rotating-file-handler>
<periodic-rotating-file-handler name="CLOUD_ADAPTER">
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t)
%s%E%n"/>
</formatter>
<file relative-to="jboss.server.log.dir"
path="cloudadapter.log"/>
<suffix value=".yyyy-MM-dd"/>
<append value="false"/>
</periodic-rotating-file-handler>
<logger category="com.arjuna">
<level name="WARN"/>
</logger>
<logger category="org.apache.tomcat.util.modeler">
<level name="WARN"/>
</logger>
<logger category="org.jboss.as.config">
<level name="DEBUG"/>
</logger>
<logger category="sun.rmi">
<level name="WARN"/>
</logger>
<logger category="jacorb">
<level name="WARN"/>
</logger>
<logger category="jacorb.config">
<level name="ERROR"/>
</logger>
<root-logger>
<level name="INFO"/>
<handlers>
<handler name="CONSOLE"/>
<handler name="FILE"/>
</handlers>
</root-logger>
<formatter name="PATTERN">
<pattern-formatter pattern="%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p
[%c] (%t) %s%E%n"/>
</formatter>
<formatter name="COLOR-PATTERN">
<pattern-formatter pattern="%K{level}%d{HH:mm:ss,SSS} %-5p
[%c] (%t) %s%E%n"/>
</formatter>
</subsystem>{color}
Thanks,
Preeta
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)