on ‎2019 Jan 09 7:41 AM - last edited on ‎2024 Feb 03 5:23 PM by postmig_api_4
I have added the below appender in logback.xml. This is writting the datahub logs into both catalina.out and datahub.log files. Is there any way to make it write only in datahub,log.
<file>../logs/datahub_${byDate}.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>../logs/datahub_%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<maxFileSize>500MB</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
</rollingPolicy>
<encoder>
<Pattern>%d [%-5level][%t][%c] %m%n</Pattern>
</encoder>
</appender>
Request clarification before answering.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.