[logback-user] Filter at the end

A N abunai_ninja at yahoo.com
Tue Dec 17 04:22:52 CET 2019


Hi,

I want to create a logging system in QA world. 

First scenario, if test passed, then I want to print only information like

     TEST_STARTED: <test name>
      TEST_SUCCESSFUL: <test name>


Second scenario, if test failed, then I want to print everything that was captured like

       TEST_STARTED: <test name>
       INFO: blah blah
       DEBUG: blah blah
       ERROR: blah blah


Am I misunderstanding that logback filter marker event at the time it was generated? I am looking to filter out events at certain point in time, not just when a event is generated?

Any help is appreciated!!

Thanks


More information about the logback-user mailing list