-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
171 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,50 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<configuration> | ||
<!-- | ||
~ Copyright 2024 EPAM Systems | ||
~ | ||
~ Licensed under the Apache License, Version 2.0 (the "License"); | ||
~ you may not use this file except in compliance with the License. | ||
~ You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, software | ||
~ distributed under the License is distributed on an "AS IS" BASIS, | ||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
~ See the License for the specific language governing permissions and | ||
~ limitations under the License. | ||
--> | ||
|
||
<!-- Send debug messages to System.out --> | ||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | ||
<!-- By default, encoders are assigned the type ch.qos.logback.classic.encoder.PatternLayoutEncoder --> | ||
<encoder> | ||
<pattern>%d{HH:mm:ss.SSS} %-5level %logger{5} - %thread - %msg%n</pattern> | ||
</encoder> | ||
</appender> | ||
<configuration> | ||
|
||
<appender name="RP" class="com.epam.reportportal.logback.appender.ReportPortalAppender"> | ||
<encoder> | ||
<!--Best practice: don't put time and logging level to the final message. Appender do this for you--> | ||
<pattern>%d{HH:mm:ss.SSS} [%t] %-5level - %msg%n</pattern> | ||
<pattern>[%t] - %msg%n</pattern> | ||
</encoder> | ||
</appender> | ||
<!-- Send debug messages to System.out --> | ||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | ||
<!-- By default, encoders are assigned the type ch.qos.logback.classic.encoder.PatternLayoutEncoder --> | ||
<encoder> | ||
<pattern>%d{HH:mm:ss.SSS} %-5level %logger{5} - %thread - %msg%n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<!--'additivity' flag is important! Without it logback will double-log log messages--> | ||
<logger name="binary_data_logger" level="TRACE" additivity="false"> | ||
<appender-ref ref="RP"/> | ||
</logger> | ||
<logger name="com.epam.reportportal.example" level="TRACE" additivity="false"> | ||
<appender-ref ref="RP"/> | ||
</logger> | ||
<appender name="RP" class="com.epam.reportportal.logback.appender.ReportPortalAppender"> | ||
<encoder> | ||
<!--Best practice: don't put time and logging level to the final message. Appender do this for you--> | ||
<pattern>%d{HH:mm:ss.SSS} [%t] %-5level - %msg%n</pattern> | ||
<pattern>[%t] - %msg%n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<logger name="com.epam.reportportal.service" level="WARN"/> | ||
<logger name="com.epam.reportportal.utils" level="WARN"/> | ||
<!-- We turned off framework logging by setting root level="WARN" to avoid logging encoded data into console. By setting level="TRACE" | ||
for "binary_data_logger" and connected it only to RP appender to log that data to ReportPortal. The 'additivity' flag is important! | ||
Without it logback will double-log log messages --> | ||
<logger name="binary_data_logger" level="TRACE" additivity="false"> | ||
<appender-ref ref="RP"/> | ||
</logger> | ||
<logger name="com.epam.reportportal.example" level="TRACE"/> | ||
|
||
<!-- By default, the level of the root level is set to DEBUG --> | ||
<root level="WARN"> | ||
<appender-ref ref="RP"/> | ||
<appender-ref ref="STDOUT"/> | ||
</root> | ||
<!-- By default, the level of the root level is set to DEBUG --> | ||
<root level="WARN"> | ||
<appender-ref ref="RP"/> | ||
<appender-ref ref="STDOUT"/> | ||
</root> | ||
|
||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.