Skip to content

Commit

Permalink
Examples update
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Feb 12, 2024
1 parent 5f76fc8 commit a3edab9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
12 changes: 9 additions & 3 deletions example-jbehave/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<jbehave.core.version>5.0</jbehave.core.version>
<embeddables>**/*Stories.java</embeddables>
<embeddables>**/*StoriesTest.java</embeddables>
<meta.filter>-skip</meta.filter>
<retrofit.version>2.9.0</retrofit.version>
</properties>
Expand Down Expand Up @@ -46,10 +46,16 @@
<artifactId>slf4j-api</artifactId>
<version>2.0.7</version>
</dependency>

<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j2-impl</artifactId>
<version>2.19.0</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>2.17.2</version>
<artifactId>log4j-core</artifactId>
<version>2.19.0</version>
</dependency>

<!-- For unknown reason 'jbehave-maven-plugin' does not see these dependencies -->
Expand Down
12 changes: 5 additions & 7 deletions example-jbehave/src/main/resources/log4j2.xml
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<Configuration packages="com.epam.ta.reportportal.log4j.appender" status="WARN">
<Configuration status="WARN">
<Appenders>
<Console name="ConsoleAppender" target="SYSTEM_OUT">
<PatternLayout
pattern="%d [%t] %-5level %logger{36} - %msg%n%throwable"/>
<PatternLayout pattern="%d [%t] %-5level %logger{36} - %msg%n%throwable"/>
</Console>
<ReportPortalLog4j2Appender name="ReportPortalAppender">
<PatternLayout
pattern="%d [%t] %-5level %logger{36} - %msg%n%throwable"/>
<PatternLayout pattern="%logger{36} - %msg%n%throwable"/>
</ReportPortalLog4j2Appender>
</Appenders>
<Loggers>
<Root level="WARN">
<AppenderRef ref="ConsoleAppender"/>
<AppenderRef ref="ReportPortalAppender"/>
</Root>
<Logger name="com.epam.reportportal" level="WARN" additivity="false">
<Logger name="com.epam.reportportal.example" level="TRACE" additivity="false">
<AppenderRef ref="ConsoleAppender"/>
<AppenderRef ref="ReportPortalAppender"/>
</Logger>
<Logger name="binary_data_logger" level="DEBUG" additivity="false">
<Logger name="binary_data_logger" level="TRACE" additivity="false">
<AppenderRef ref="ReportPortalAppender"/>
</Logger>
</Loggers>
Expand Down

0 comments on commit a3edab9

Please sign in to comment.