Skip to content

Commit

Permalink
obtained current Logback configuration layout
Browse files Browse the repository at this point in the history
  • Loading branch information
simonetripodi committed Jun 21, 2013
1 parent d0e2d1c commit f817756
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 17 deletions.
6 changes: 3 additions & 3 deletions logback-joran2/src/main/mdo/joran.mdo
Expand Up @@ -33,7 +33,7 @@
</defaults>

<classes>
<class xml.tagName="configuration" rootElement="true" java.builder="true" java.toString="true">
<class xml.tagName="configuration" xsd.compositor="sequence" rootElement="true" java.builder="true" java.toString="true">
<name>Configuration</name>
<version>2.0.0+</version>
<fields>
Expand Down Expand Up @@ -63,7 +63,7 @@
<name>properties</name>
<version>2.0.0+</version>
<type>List</type>
<association xml.itemsStyle="inline" java.init="constructor">
<association xml.itemsStyle="flat" java.init="constructor">
<type>Property</type>
<multiplicity>*</multiplicity>
</association>
Expand All @@ -73,7 +73,7 @@
<name>appenders</name>
<version>2.0.0+</version>
<required>true</required>
<association xml.itemsStyle="inline" java.init="constructor">
<association xml.itemsStyle="flat" java.init="constructor">
<type>Appender</type>
<multiplicity>*</multiplicity>
</association>
Expand Down
@@ -1,19 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true" scanPeriod="30 seconds">
<properties>
<property name="USER_HOME" value="/home/sebastien" />
<property name="nodeId" value="firstNode" scope="context" />
<property file="src/main/java/chapters/configuration/variables1.properties" />
<property resource="resource1.properties" />
</properties>
<appenders>
<appender name="FILE" class="ch.qos.logback.core.FileAppender">
<file>${USER_HOME}/${nodeId}/myApp.log</file>
<encoder>
<pattern>%msg%n</pattern>
</encoder>
</appender>
</appenders>
<property name="USER_HOME" value="/home/sebastien" />
<property name="nodeId" value="firstNode" scope="context" />
<property file="src/main/java/chapters/configuration/variables1.properties" />
<property resource="resource1.properties" />
<appender name="FILE" class="ch.qos.logback.core.FileAppender">
<file>${USER_HOME}/${nodeId}/myApp.log</file>
<encoder>
<pattern>%msg%n</pattern>
</encoder>
</appender>
<root level="info">
<appender-ref ref="FILE" />
</root>
Expand Down

0 comments on commit f817756

Please sign in to comment.