Permalink
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (18 sloc) 2.26 KB

Build Status

This Concordion extension provides support for Logback logging.

The demo project demonstrates this extension.

Introduction

Provides Logback logging support for concordion.

When using this extension I recommend not catching and logging exceptions yourself (unless you need to perform a specific action or stop the exception filtering back up to the specification) as this extension will automatically capture and log the exception.

This extension was originally developed once we started running our tests in parallel (using the latest update to cordion to allow this) and discovered that one interleaved log file was not particularly useful. Even if you are not running tests in parallel the ability to click on a link in the specification to access the log file is very nice :-)

Tooltip


Adds the LogbackLogMessenger class to support the tooltip extension

Unique Log Per Test


The LoggingFormatterExtension places a link at the bottom right of each specification to the specifications log file

The log is presented wrapped by a log viewer page, this was an attempt to make the logging less scary for non developers and came before I thought of the storyboard extension. I'm a little unsure whether its an improvement or not. There log viewer provides access to the raw log file as well.

Your Logback configuration must have an active SiftingAppender with a discriminator key of "testname". If found the extension will add a link at the bottom right of your specification that links to the log file. This log file is assumed to be in the same location as the specificaiton, and with the same base name, but with a file extension of '.log'. See the demo project for an example.

Further info