The output is produced by code you are testing not by Serenity BDD. So in order to modify output you should be changing logging properties of the logger you use.
slf4j is a logging facade, it finds proper logger and redirect output to it. So you need to add a logger to your application and then configure it the way you like.
For example, adding logback to your configuration.
Add it logback as dependency to a project
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.1.3</version>
</dependency>
add src/test/resources/logback-test.xml
to guide what logback should be logging.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<layout class="ch.qos.logback.classic.PatternLayout">
<Pattern>
%-5level %logger{36} - %msg%n
</Pattern>
</layout>
</appender>
<!-- set DEBUG logging level for a package -->
<logger name="com.my.package" level="debug">
<!-- log warnings and errors by default -->
<root level="warn">
<appender-ref ref="STDOUT" />
</root>
</configuration>
This configuration will log warnings and error to console. And will log also debug and info messages for package com.my.package
.
If you don't like logback, use log4j2 or any other logger of your choice.