public class TransformerDebugLog
extends org.alfresco.util.LogAdapter
Log that logs messages to a structure accessible via
TransformerConfigMBean#getTransformationDebug(int).| Constructor and Description |
|---|
TransformerDebugLog() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addOrModify(java.util.Deque entries,
java.lang.Object message)
Overridden in sub classes to add a new entry or modify and existing one
|
void |
debug(java.lang.Object message,
java.lang.Throwable throwable) |
java.lang.String[] |
getEntries(int n)
Returns the log entries.
|
java.lang.String |
getPropertyAndValue(java.util.Properties defaultProperties)
The transformer property and value used to set this logger.
|
protected java.lang.String |
getPropertyName()
Overridden to specify the property name that specifies the maximum number of entries.
|
protected int |
getUpperMaxEntries()
Overridden to specify the maximum value the maxEntries property may set.
|
boolean |
isDebugEnabled()
Enabled if number of transformer debug entries is greater than 0
AND there is not a test function generating output.
|
protected void |
remove(java.util.Deque entries)
Removes an entry.
|
void |
setTransformerConfig(TransformerConfig transformerConfig) |
void |
setTransformerDebug(TransformerDebug transformerDebug) |
debug, error, error, fatal, fatal, info, info, isErrorEnabled, isFatalEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, trace, trace, warn, warnprotected int getUpperMaxEntries()
Returns 20 as this is debug and we must currently walk the whole structure each time an new request id is added.
protected java.lang.String getPropertyName()
protected void addOrModify(java.util.Deque entries,
java.lang.Object message)
public void setTransformerDebug(TransformerDebug transformerDebug)
public void setTransformerConfig(TransformerConfig transformerConfig)
transformerConfig - used to access the property.public boolean isDebugEnabled()
isDebugEnabled in interface org.apache.commons.logging.LogisDebugEnabled in class org.alfresco.util.LogAdapterpublic void debug(java.lang.Object message,
java.lang.Throwable throwable)
debug in interface org.apache.commons.logging.Logdebug in class org.alfresco.util.LogAdaptermessage - to be appended to the logthrowable - ignoredprotected void remove(java.util.Deque entries)
public java.lang.String[] getEntries(int n)
n - the maximum number of entries to return. All if n is smaller or equal to zero.public java.lang.String getPropertyAndValue(java.util.Properties defaultProperties)
defaultProperties - the transformer.properties file values that may be overridden.Copyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.