Permana
2018-10-02 2429c55948869951cf10ffea42e8b79054e93068
commit | author | age
9fa5ae 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     <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
7         <encoder> 
8             <pattern>${LOG_PATTERN}</pattern>
9         </encoder>
10     </appender>
9f0281 11     <springProfile name="dev">
P 12         <property name="LOG_PATH" value="~/drive/amcloud/Project/CARRIER BILLING/UNIPIN/unipin/log"/>
13     </springProfile>
14     <springProfile name="prod">
15         <property name="LOG_PATH" value="/app1/am/app/unipin/log"/>
16     </springProfile>
9fa5ae 17
P 18     <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
2429c5 19         <file>${LOG_PATH}/unipin-request-service.log</file>
9fa5ae 20         <encoder>
P 21             <pattern>${LOG_PATTERN}</pattern>
22         </encoder>
23
24         <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
2429c5 25             <fileNamePattern>${LOG_PATH}/request/unipin-request-service.log.%d{yyyyMMdd}</fileNamePattern>
9fa5ae 26             <maxHistory>180</maxHistory>
P 27         </rollingPolicy>
28
29     </appender>
30
31
32     <root level="info">
9f0281 33         <springProfile name="dev">
P 34             <appender-ref ref="STDOUT"/>
35         </springProfile>
36         <springProfile name="prod">
37             <appender-ref ref="FILE"/>
38         </springProfile>
9fa5ae 39     </root>
P 40 </configuration>