Permalink
Browse files

Added log4j configuration to log messages to stdout for local profiles

(OBANYC-1246)
  • Loading branch information...
1 parent b94dc2e commit 5b27ad564dcfed577735e712b7f691ab03f650fe Adwait Belsare committed Apr 25, 2012
@@ -118,6 +118,7 @@
<service.wikihost>xwiki.staging.obanyc.com</service.wikihost>
<dummy.permissions></dummy.permissions>
<tdm.host>tdm</tdm.host>
+ <log4j.appender>ROLL</log4j.appender>
</properties>
</profile>
<profile>
@@ -129,6 +130,7 @@
<service.wikihost>xwiki.staging.obanyc.com</service.wikihost>
<dummy.permissions></dummy.permissions>
<tdm.host>tdm.dev.obanyc.com</tdm.host>
+ <log4j.appender>stdout</log4j.appender>
</properties>
</profile>
<profile>
@@ -139,6 +141,7 @@
<config.path>http://localhost:8080/onebusaway-nyc-transit-data-federation-webapp</config.path>
<service.wikihost>xwiki.staging.obanyc.com</service.wikihost>
<dummy.permissions></dummy.permissions>
+ <log4j.appender>stdout</log4j.appender>
</properties>
</profile>
<profile>
@@ -150,6 +153,7 @@
<config.path>http://localhost:8080/onebusaway-nyc-vehicle-tracking-webapp</config.path>
<service.wikihost>xwiki.staging.obanyc.com</service.wikihost>
<dummy.permissions></dummy.permissions>
+ <log4j.appender>stdout</log4j.appender>
</properties>
</profile>
<profile>
@@ -163,6 +167,7 @@
<service.wikihost>xwiki.staging.obanyc.com</service.wikihost>
<dummy.permissions> &lt;bean id="apiKeyService" class="org.onebusaway.api.services.DummyApiKeyPermissionService" primary="true"/&gt;
</dummy.permissions>
+ <log4j.appender>stdout</log4j.appender>
</properties>
</profile>
</profiles>
@@ -17,14 +17,22 @@
<param name="ConversionPattern" value="%d{ISO8601} %-5p [%F:%L] : %m%n" />
</layout>
</appender>
+
+ <appender name="stdout" class="org.apache.log4j.ConsoleAppender">
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <!-- The log message pattern -->
+ <param name="ConversionPattern" value="%d{ISO8601} %-5p [%F:%L] : %m%n" />
+ </layout>
+ </appender>
<!-- 0 or more logger/category elements -->
<!-- 0 or 1 root elements -->
<root>
<priority value="info" />
- <appender-ref ref="ROLL" />
+ <appender-ref ref="${log4j.appender}" />
</root>
<!-- 0 or 1 categoryFactory elements -->
@@ -17,14 +17,22 @@
<param name="ConversionPattern" value="%d{ISO8601} %-5p [%F:%L] : %m%n" />
</layout>
</appender>
+
+ <appender name="stdout" class="org.apache.log4j.ConsoleAppender">
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <!-- The log message pattern -->
+ <param name="ConversionPattern" value="%d{ISO8601} %-5p [%F:%L] : %m%n" />
+ </layout>
+ </appender>
<!-- 0 or more logger/category elements -->
<!-- 0 or 1 root elements -->
<root>
<priority value="info" />
- <appender-ref ref="ROLL" />
+ <appender-ref ref="${log4j.appender}" />
</root>
<!-- 0 or 1 categoryFactory elements -->
@@ -17,14 +17,22 @@
<param name="ConversionPattern" value="%d{ISO8601} %-5p [%F:%L] : %m%n" />
</layout>
</appender>
+
+ <appender name="stdout" class="org.apache.log4j.ConsoleAppender">
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <!-- The log message pattern -->
+ <param name="ConversionPattern" value="%d{ISO8601} %-5p [%F:%L] : %m%n" />
+ </layout>
+ </appender>
<!-- 0 or more logger/category elements -->
<!-- 0 or 1 root elements -->
<root>
<priority value="info" />
- <appender-ref ref="ROLL" />
+ <appender-ref ref="${log4j.appender}" />
</root>
<!-- 0 or 1 categoryFactory elements -->
@@ -17,14 +17,22 @@
<param name="ConversionPattern" value="%d{ISO8601} %-5p [%F:%L] : %m%n" />
</layout>
</appender>
+
+ <appender name="stdout" class="org.apache.log4j.ConsoleAppender">
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <!-- The log message pattern -->
+ <param name="ConversionPattern" value="%d{ISO8601} %-5p [%F:%L] : %m%n" />
+ </layout>
+ </appender>
<!-- 0 or more logger/category elements -->
<!-- 0 or 1 root elements -->
<root>
<priority value="info" />
- <appender-ref ref="ROLL" />
+ <appender-ref ref="${log4j.appender}" />
</root>
<!-- 0 or 1 categoryFactory elements -->
@@ -17,14 +17,22 @@
<param name="ConversionPattern" value="%d{ISO8601} %-5p [%F:%L] : %m%n" />
</layout>
</appender>
+
+ <appender name="stdout" class="org.apache.log4j.ConsoleAppender">
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <!-- The log message pattern -->
+ <param name="ConversionPattern" value="%d{ISO8601} %-5p [%F:%L] : %m%n" />
+ </layout>
+ </appender>
<!-- 0 or more logger/category elements -->
<!-- 0 or 1 root elements -->
<root>
<priority value="info" />
- <appender-ref ref="ROLL" />
+ <appender-ref ref="${log4j.appender}" />
</root>
<!-- 0 or 1 categoryFactory elements -->
@@ -17,14 +17,22 @@
<param name="ConversionPattern" value="%d{ISO8601} %-5p [%F:%L] : %m%n" />
</layout>
</appender>
+
+ <appender name="stdout" class="org.apache.log4j.ConsoleAppender">
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <!-- The log message pattern -->
+ <param name="ConversionPattern" value="%d{ISO8601} %-5p [%F:%L] : %m%n" />
+ </layout>
+ </appender>
<!-- 0 or more logger/category elements -->
<!-- 0 or 1 root elements -->
<root>
<priority value="info" />
- <appender-ref ref="ROLL" />
+ <appender-ref ref="${log4j.appender}" />
</root>
<!-- 0 or 1 categoryFactory elements -->
@@ -118,6 +118,7 @@
<bundle.mode.standalone>false</bundle.mode.standalone>
<tds.path>http://localhost:8080/onebusaway-nyc-transit-data-federation-webapp</tds.path><!-- assumes domain is set in resolv.conf -->
<tdm.host>tdm</tdm.host>
+ <log4j.appender>ROLL</log4j.appender>
</properties>
</profile>
<profile>
@@ -126,6 +127,7 @@
<jetty.port>8082</jetty.port>
<tds.path>http://sms.replay.obanyc.com:8080/onebusaway-nyc-transit-data-federation-webapp</tds.path>
<tdm.host>tdm.replay.obanyc.com</tdm.host>
+ <log4j.appender>stdout</log4j.appender>
</properties>
</profile>
<!-- archive can't run single port because zeromq can't be shared (classloader issues) -->
@@ -136,13 +138,15 @@
<jetty.port>8085</jetty.port>
<tds.path>http://localhost:8080/onebusaway-nyc-transit-data-federation-webapp</tds.path>
<tdm.host>tdm.dev.obanyc.com</tdm.host>
+ <log4j.appender>stdout</log4j.appender>
</properties>
</profile>
<profile>
<id>local-ie</id> <!-- aka services-vtw-as-tds --> <!-- single port, aka development -->
<properties>
<tds.path>http://localhost:8080/onebusaway-nyc-vehicle-tracking-webapp</tds.path>
<tdm.host>tdm.dev.obanyc.com</tdm.host>
+ <log4j.appender>stdout</log4j.appender>
</properties>
</profile>
<profile>
@@ -151,6 +155,7 @@
<jetty.port>8082</jetty.port>
<tds.path>http://localhost:8081/onebusaway-nyc-vehicle-tracking-webapp</tds.path>
<tdm.host>tdm.dev.obanyc.com</tdm.host>
+ <log4j.appender>stdout</log4j.appender>
</properties>
</profile>
</profiles>
@@ -17,14 +17,22 @@
<param name="ConversionPattern" value="%d{ISO8601} %-5p [%F:%L] : %m%n" />
</layout>
</appender>
+
+ <appender name="stdout" class="org.apache.log4j.ConsoleAppender">
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <!-- The log message pattern -->
+ <param name="ConversionPattern" value="%d{ISO8601} %-5p [%F:%L] : %m%n" />
+ </layout>
+ </appender>
<!-- 0 or more logger/category elements -->
<!-- 0 or 1 root elements -->
<root>
<priority value="info" />
- <appender-ref ref="ROLL" />
+ <appender-ref ref="${log4j.appender}" />
</root>
<!-- 0 or 1 categoryFactory elements -->
@@ -83,6 +83,7 @@
<service.wikihost>xwiki.staging.obanyc.com</service.wikihost>
<tdm.host>tdm</tdm.host><!-- assumes domain is set in resolv.conf -->
<webapp.api.url></webapp.api.url>
+ <log4j.appender>ROLL</log4j.appender>
</properties>
</profile>
<profile>
@@ -95,6 +96,7 @@
<service.wikihost>xwiki.staging.obanyc.com</service.wikihost>
<tdm.host>tdm.dev.obanyc.com</tdm.host>
<webapp.api.url>http://localhost:8080</webapp.api.url>
+ <log4j.appender>stdout</log4j.appender>
</properties>
</profile>
<profile>
@@ -106,6 +108,7 @@
<service.wikihost>xwiki.staging.obanyc.com</service.wikihost>
<webapp.api.url>http://localhost:8080</webapp.api.url>
<tdm.host>tdm.dev.obanyc.com</tdm.host>
+ <log4j.appender>stdout</log4j.appender>
</properties>
</profile>
<profile>
@@ -117,6 +120,7 @@
<service.wikihost>xwiki.staging.obanyc.com</service.wikihost>
<webapp.api.url>http://localhost:8080</webapp.api.url>
<tdm.host>tdm.dev.obanyc.com</tdm.host>
+ <log4j.appender>stdout</log4j.appender>
</properties>
</profile>
<profile>
@@ -130,6 +134,7 @@
<service.wikihost>xwiki.staging.obanyc.com</service.wikihost>
<webapp.api.url>http://localhost:8082</webapp.api.url>
<tdm.host>tdm.staging.obanyc.com</tdm.host>
+ <log4j.appender>stdout</log4j.appender>
</properties>
</profile>
</profiles>
@@ -17,14 +17,22 @@
<param name="ConversionPattern" value="%d{ISO8601} %-5p [%F:%L] : %m%n" />
</layout>
</appender>
+
+ <appender name="stdout" class="org.apache.log4j.ConsoleAppender">
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <!-- The log message pattern -->
+ <param name="ConversionPattern" value="%d{ISO8601} %-5p [%F:%L] : %m%n" />
+ </layout>
+ </appender>
<!-- 0 or more logger/category elements -->
<!-- 0 or 1 root elements -->
<root>
<priority value="info" />
- <appender-ref ref="ROLL" />
+ <appender-ref ref="${log4j.appender}" />
</root>
<!-- 0 or 1 categoryFactory elements -->
@@ -86,6 +86,7 @@
<tdm.host>tdm</tdm.host><!-- assumes domain is set in resolv.conf -->
<service.alerts.url>http://tdm/siri/situation-exchange</service.alerts.url>
<service.alerts.subscription.path>/onebusaway-nyc-transit-data-federation-webapp/siri/situation-exchange</service.alerts.subscription.path>
+ <log4j.appender>ROLL</log4j.appender>
</properties>
</profile>
<profile>
@@ -94,6 +95,7 @@
<tdm.host>tdm.dev.obanyc.com</tdm.host>
<bundle.location>/tmp/oba-bundle</bundle.location>
<bundle.mode.standalone>false</bundle.mode.standalone>
+ <log4j.appender>stdout</log4j.appender>
</properties>
</profile>
<profile>
@@ -109,6 +111,7 @@
-->
<service.alerts.url>http://tdm.dev.obanyc.com/siri/situation-exchange</service.alerts.url>
<service.alerts.subscription.path>/onebusaway-nyc-vehicle-tracking-webapp/siri/situation-exchange</service.alerts.subscription.path>
+ <log4j.appender>stdout</log4j.appender>
</properties>
</profile>
<profile>
@@ -120,6 +123,7 @@
<bundle.mode.standalone>true</bundle.mode.standalone>
<service.alerts.url></service.alerts.url>
<service.alerts.subscription.path></service.alerts.subscription.path>
+ <log4j.appender>stdout</log4j.appender>
</properties>
</profile>
<profile>
@@ -128,6 +132,7 @@
<tdm.host>tdm.dev.obanyc.com</tdm.host>
<bundle.location>/tmp/oba-bundle</bundle.location>
<bundle.mode.standalone>true</bundle.mode.standalone>
+ <log4j.appender>stdout</log4j.appender>
</properties>
</profile>
<profile>
@@ -138,6 +143,7 @@
<bundle.mode.standalone>true</bundle.mode.standalone>
<service.alerts.url>http://localhost:8083/siri/situation-exchange</service.alerts.url>
<service.alerts.subscription.path>:8081/onebusaway-nyc-vehicle-tracking-webapp/siri/situation-exchange</service.alerts.subscription.path>
+ <log4j.appender>stdout</log4j.appender>
</properties>
</profile>
</profiles>
@@ -17,14 +17,22 @@
<param name="ConversionPattern" value="%d{ISO8601} %-5p [%F:%L] : %m%n" />
</layout>
</appender>
+
+ <appender name="stdout" class="org.apache.log4j.ConsoleAppender">
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <!-- The log message pattern -->
+ <param name="ConversionPattern" value="%d{ISO8601} %-5p [%F:%L] : %m%n" />
+ </layout>
+ </appender>
<!-- 0 or more logger/category elements -->
<!-- 0 or 1 root elements -->
<root>
<priority value="info" />
- <appender-ref ref="ROLL" />
+ <appender-ref ref="${log4j.appender}" />
</root>
<!-- 0 or 1 categoryFactory elements -->
Oops, something went wrong.

0 comments on commit 5b27ad5

Please sign in to comment.