Permana
2018-10-02 2429c55948869951cf10ffea42e8b79054e93068
commit | author | age
9fa5ae 1 <?xml version="1.0" encoding="UTF-8"?>
P 2 <configuration>
3
2429c5 4     <property name="LOG_PATTERN" value="%d %-5level  [%logger{20}]  %msg%n"/>
9fa5ae 5
P 6     <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
2429c5 7         <encoder>
9fa5ae 8             <pattern>${LOG_PATTERN}</pattern>
P 9         </encoder>
10     </appender>
11
12     <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
2429c5 13         <springProfile name="dev">
P 14             <file>~/drive/amcloud/Project/ECOMMERS/payment_gateway/log/unipin-notification-service.log</file>
15         </springProfile>
16         <springProfile name="prod">
17             <file>/app1/am/app/unipin/log/unipin-notification-service.log</file>
18         </springProfile>
9fa5ae 19         <encoder>
P 20             <pattern>${LOG_PATTERN}</pattern>
21         </encoder>
22
23         <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
2429c5 24             <springProfile name="dev">
P 25                 <fileNamePattern>/~/drive/amcloud/Project/ECOMMERS/payment_gateway/log/notification/log.log.%d{yyyyMMdd}</fileNamePattern>
26             </springProfile>
27             <springProfile name="prod">
28                 <fileNamePattern>/app1/am/app/unipin/log/notification/log.log.%d{yyyyMMdd}</fileNamePattern>
29             </springProfile>
9fa5ae 30             <maxHistory>180</maxHistory>
P 31         </rollingPolicy>
32
33     </appender>
34
35
36     <root level="info">
37         <!--<appender-ref ref="STDOUT" />-->
2429c5 38         <springProfile name="dev">
P 39             <appender-ref ref="STDOUT"/>
40         </springProfile>
41
42         <springProfile name="prod">
43             <appender-ref ref="FILE"/>
44         </springProfile>
9fa5ae 45     </root>
P 46 </configuration>