diff options
author | wasala <przemyslaw.wasala@nokia.com> | 2018-04-18 15:21:56 +0200 |
---|---|---|
committer | wasala <przemyslaw.wasala@nokia.com> | 2018-04-20 11:26:33 +0200 |
commit | 5fbcb6344672167e7d1dbf28ecbea3b8f55732fb (patch) | |
tree | db250db6d3b99c386eb44966b0ecd2010f2355ad /prh-app-server/src/main/resources/logback-spring.xml | |
parent | b3a974ed7dccb1fc29b8bef2a1112bb78abe3197 (diff) |
Implementation for HTTP/HTTPS and endpoints
*Added HTTP/HTTPS in spring configuration
*Fixing issues with license
*Fixing HTTP/HTTPS and logging configuration
*Add Webflux in implementation
Change-Id: I0a7add391cde010d56dbf352de365b1eba90a9cd
Issue-ID: DCAEGEN2-453
Signed-off-by: wasala <przemyslaw.wasala@nokia.com>
Diffstat (limited to 'prh-app-server/src/main/resources/logback-spring.xml')
-rw-r--r-- | prh-app-server/src/main/resources/logback-spring.xml | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/prh-app-server/src/main/resources/logback-spring.xml b/prh-app-server/src/main/resources/logback-spring.xml new file mode 100644 index 00000000..af4ab189 --- /dev/null +++ b/prh-app-server/src/main/resources/logback-spring.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="UTF-8"?> +<configuration> + <include resource="org/springframework/boot/logging/logback/defaults.xml"/> + <property name="LOG_FILE" + value="${LOG_FILE:-${LOG_PATH:-${LOG_TEMP:-${java.io.tmpdir:-/tmp}}/}spring.log}"/> + + <springProfile name="dev"> + <include resource="org/springframework/boot/logging/logback/console-appender.xml"/> + <appender name="ROLLING-FILE" + class="ch.qos.logback.core.rolling.RollingFileAppender"> + <encoder> + <pattern>${FILE_LOG_PATTERN}</pattern> + </encoder> + <file>${LOG_FILE}</file> + <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> + <fileNamePattern>${LOG_FILE}.%d{yyyy-MM-dd}.log</fileNamePattern> + </rollingPolicy> + </appender> + <root level="ERROR"> + <appender-ref ref="CONSOLE"/> + <appender-ref ref="ROLLING-FILE"/> + </root> + </springProfile> + + <springProfile name="prod"> + <appender name="ROLLING-FILE" + class="ch.qos.logback.core.rolling.RollingFileAppender"> + <encoder> + <pattern>${FILE_LOG_PATTERN}</pattern> + </encoder> + <file>${LOG_FILE}</file> + <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> + <fileNamePattern>${LOG_FILE}.%d{yyyy-MM-dd}.%i.gz</fileNamePattern> + <timeBasedFileNamingAndTriggeringPolicy + class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> + <maxFileSize>10MB</maxFileSize> + </timeBasedFileNamingAndTriggeringPolicy> + </rollingPolicy> + </appender> + + <root level="ERROR"> + <appender-ref ref="ROLLING-FILE"/> + </root> + </springProfile> +</configuration>
\ No newline at end of file |