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