Permalink
Browse files

updated with log4j

  • Loading branch information...
1 parent 3c69e11 commit e427e3c387f440f38e049440ba1129b3522d31f9 @felipeg48 committed Feb 12, 2013
@@ -16,6 +16,7 @@ dependencies {
groovy 'org.codehaus.groovy:groovy-all:2.0.6'
compile 'org.springframework:spring-context:3.2.0.RELEASE'
+ runtime 'log4j:log4j:1.2.17'
testCompile 'junit:junit:4.8.2'
testCompile 'org.springframework:spring-test:3.2.0.RELEASE'
@@ -3,13 +3,13 @@
*/
package com.itprosmx.spring.integration
-import groovy.util.logging.Log
+import groovy.util.logging.Log4j
/**
* @author felipeg
*
*/
-@Log
+@Log4j
class ServiceOne {
void processModel(Model model){
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
+
+ <!-- Appenders -->
+ <appender name="console" class="org.apache.log4j.ConsoleAppender">
+ <param name="Target" value="System.out" />
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern" value="%d{HH:mm:ss.SSS} %-5p [%t][%c] %m%n" />
+ </layout>
+ </appender>
+
+ <!-- Loggers -->
+ <logger name="org.springframework.integration">
+ <level value="warn" />
+ </logger>
+
+ <logger name="com.itprosmx.spring.integration">
+ <level value="info" />
+ </logger>
+
+ <!-- Root Logger -->
+ <root>
+ <priority value="warn" />
+ <appender-ref ref="console" />
+ </root>
+
+</log4j:configuration>

0 comments on commit e427e3c

Please sign in to comment.