Real time console logging

145 views
Skip to first unread message

MK

unread,
Feb 22, 2017, 8:50:35 PM2/22/17
to Serenity BDD Users Group
Hi all,
 Does Serenity support real-time console logging? In our Serenity JUnit project (we use maven) the console log is printed only after test completes the run. Tried various configuration/fixes does not work. Would appreciate some feedback.

Thanks,
MK 

John Smart

unread,
Feb 24, 2017, 9:21:25 AM2/24/17
to MK, Serenity BDD Users Group
Serenity uses Slf4j, the way the log messages are processed will depend on the logging library that you use in your project.

--
You received this message because you are subscribed to the Google Groups "Serenity BDD Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thucydides-users+unsubscribe@googlegroups.com.
To post to this group, send email to thucydides-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
___________________________________________________
John Smart | Wakaleo Consulting  |  +44 7398 832273
Making smart teams collaborate better
http://johnfergusonsmart.com  |  john....@wakaleo.com
___________________________________________________

We love breaking down silos and helping smart teams collaborate better! Ask about our tailored on-site workshops in Agile Product Planning, BDD Requirements Discovery,  BDD, TDD and Clean Coding, and Advanced BDD Test Automation.
___________________________________________________

MK

unread,
Feb 27, 2017, 6:27:34 AM2/27/17
to Serenity BDD Users Group, meena...@gmail.com
Hi John,
 Thanks for your response. Would appreciate some feedback to get logging to work real time in our project .Our project POM has:

       <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-log4j12</artifactId>
            <version>1.7.7</version>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <version>1.7.5</version>
        </dependency>

And following logback.xml is at src\test\resources\logback.xml:
  
<configuration debug="true">
    <statusListener class="ch.qos.logback.core.status.OnConsoleStatusListener" />
  <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">

    <!-- encoders are  by default assigned the type
         ch.qos.logback.classic.encoder.PatternLayoutEncoder -->
    <encoder>
      <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
    </encoder>
  </appender>

  <root level="debug">
    <appender-ref ref="STDOUT" />
  </root>
</configuration>

Thanks,
MK




On Friday, February 24, 2017 at 6:21:25 AM UTC-8, John Smart wrote:
Serenity uses Slf4j, the way the log messages are processed will depend on the logging library that you use in your project.
On 23 February 2017 at 02:50, MK <meena...@gmail.com> wrote:
Hi all,
 Does Serenity support real-time console logging? In our Serenity JUnit project (we use maven) the console log is printed only after test completes the run. Tried various configuration/fixes does not work. Would appreciate some feedback.

Thanks,
MK 

--
You received this message because you are subscribed to the Google Groups "Serenity BDD Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thucydides-use...@googlegroups.com.
To post to this group, send email to thucydid...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages