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