Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

RedDeer logging system

jpeterka edited this page May 21, 2015 · 16 revisions

Logging in RedDeer is similar to any other logging system like log4j with some slight differences. On the one hand it is more simple and doesn't require any xml configuration. On the other hand it provides some additional logging types like dump or step.

Using the logger

When you want to use logger in your your class you just need define Logger from org.jboss.reddeer.common.logging package.

private final Logger log = Logger.getLogger(WorkbenchPreferenceDialog.class);

then you can log as needed in your code:

log.info("Server is started");

Log types

Type Usage
FATAL
ERROR
DUMP
STEP
WARN
INFO
DEBUG
TRACE

Log filters

Parameter Default value Type Description Source
logMessageFilter ALL pipe separated string filters log messages according to settings. Possible
logLevel ALL string filters log messages according to settings. Possible values are none,trace,debug,error,warn,info,step,error,fatal,all . Values are case insensitive ExecutionSettings
Clone this wiki locally