Configure logging for rest resources if log4j is debug enabled

Description

Currently we have facility to log json based on the base class Resource. What I want to do is formalize using this a bit more. Right now if I want to use this, I have to do put temp code in and take it out.

What I see doing:

if (log.isDebugEnabled)
{
logJson(..)
...
}
else
{
...
}

This way we just setup debug mode for the classes we want and we'll get the data out.

Environment

None

Test Plan

None

Activity

Show:

Michael Wenk August 23, 2011 at 11:42 AM

This isn't as easy as originally thought as the resources themselves need to define their logging. Otherwise you could log all resources or none, which isn't really optimal.

Closing

Won't Fix

Details

Assignee

Reporter

Components

Affects versions

Priority

Created September 17, 2010 at 2:30 PM
Updated August 23, 2011 at 11:42 AM
Resolved August 23, 2011 at 11:42 AM