Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

updated with log4j

  • Loading branch information...
commit e427e3c387f440f38e049440ba1129b3522d31f9 1 parent 3c69e11
Felipe Gutierrez authored
1  01-spring-integration-service-activator/build.gradle
@@ -16,6 +16,7 @@ dependencies {
16 16
17 17 groovy 'org.codehaus.groovy:groovy-all:2.0.6'
18 18 compile 'org.springframework:spring-context:3.2.0.RELEASE'
  19 + runtime 'log4j:log4j:1.2.17'
19 20
20 21 testCompile 'junit:junit:4.8.2'
21 22 testCompile 'org.springframework:spring-test:3.2.0.RELEASE'
4 01-spring-integration-service-activator/src/main/groovy/com/itprosmx/spring/integration/ServiceOne.groovy
@@ -3,13 +3,13 @@
3 3 */
4 4 package com.itprosmx.spring.integration
5 5
6   -import groovy.util.logging.Log
  6 +import groovy.util.logging.Log4j
7 7
8 8 /**
9 9 * @author felipeg
10 10 *
11 11 */
12   -@Log
  12 +@Log4j
13 13 class ServiceOne {
14 14
15 15 void processModel(Model model){
28 01-spring-integration-service-activator/src/main/resources/log4j.xml
... ... @@ -0,0 +1,28 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
  3 +<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
  4 +
  5 + <!-- Appenders -->
  6 + <appender name="console" class="org.apache.log4j.ConsoleAppender">
  7 + <param name="Target" value="System.out" />
  8 + <layout class="org.apache.log4j.PatternLayout">
  9 + <param name="ConversionPattern" value="%d{HH:mm:ss.SSS} %-5p [%t][%c] %m%n" />
  10 + </layout>
  11 + </appender>
  12 +
  13 + <!-- Loggers -->
  14 + <logger name="org.springframework.integration">
  15 + <level value="warn" />
  16 + </logger>
  17 +
  18 + <logger name="com.itprosmx.spring.integration">
  19 + <level value="info" />
  20 + </logger>
  21 +
  22 + <!-- Root Logger -->
  23 + <root>
  24 + <priority value="warn" />
  25 + <appender-ref ref="console" />
  26 + </root>
  27 +
  28 +</log4j:configuration>

0 comments on commit e427e3c

Please sign in to comment.
Something went wrong with that request. Please try again.