aboutsummaryrefslogtreecommitdiffstats
path: root/event-client-dmaap/src/main/resources/logback.xml
diff options
context:
space:
mode:
Diffstat (limited to 'event-client-dmaap/src/main/resources/logback.xml')
-rw-r--r--event-client-dmaap/src/main/resources/logback.xml27
1 files changed, 27 insertions, 0 deletions
diff --git a/event-client-dmaap/src/main/resources/logback.xml b/event-client-dmaap/src/main/resources/logback.xml
new file mode 100644
index 0000000..5e5234c
--- /dev/null
+++ b/event-client-dmaap/src/main/resources/logback.xml
@@ -0,0 +1,27 @@
+<configuration>
+ <property name="logDirectory" value="logs/" />
+
+ <appender name="event-bus-client" class="ch.qos.logback.core.rolling.RollingFileAppender">
+ <File>${logDirectory}/application.log</File>
+ <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
+ <fileNamePattern>${logDirectory}/application.log.%d{yyyy-MM-dd}</fileNamePattern>
+ </rollingPolicy>
+ <encoder>
+ <pattern>%d %-5level %logger{36} - %msg%n</pattern>
+ </encoder>
+ </appender>
+
+ <logger name="com.att.eelf" level="INFO" additivity="false">
+ <appender-ref ref="event-bus-client"/>
+ </logger>
+
+ <!-- DEBUG < INFO < WARN < ERROR -->
+ <logger name="event-bus-client" level="INFO" additivity="false">
+ <appender-ref ref="event-bus-client"/>
+ </logger>
+
+ <root level="INFO">
+ <appender-ref ref="event-bus-client"/>
+ </root>
+
+</configuration> \ No newline at end of file