Class TransformerDebugLog
- java.lang.Object
-
- org.alfresco.util.LogAdapter
-
- org.alfresco.repo.content.transform.TransformerDebugLog
-
- All Implemented Interfaces:
org.apache.commons.logging.Log
@Deprecated public class TransformerDebugLog extends org.alfresco.util.LogAdapterDeprecated.The transformations code is being moved out of the codebase and replaced by the new async RenditionService2 or other external libraries.Implementation of aLogthat logs messages to a structure accessible viaTransformerConfigMBean.getTransformationDebugLog(int).- Author:
- Alan Davis
-
-
Constructor Summary
Constructors Constructor Description TransformerDebugLog()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidaddOrModify(java.util.Deque<org.alfresco.repo.content.transform.DebugEntry> entries, java.lang.Object message)Deprecated.Overridden in sub classes to add a new entry or modify and existing onevoiddebug(java.lang.Object message, java.lang.Throwable throwable)Deprecated.java.lang.String[]getEntries(int n)Deprecated.Returns the log entries.java.lang.StringgetPropertyAndValue(java.util.Properties defaultProperties)Deprecated.The transformer property and value used to set this logger.protected java.lang.StringgetPropertyName()Deprecated.Overridden to specify the property name that specifies the maximum number of entries.protected intgetUpperMaxEntries()Deprecated.Overridden to specify the maximum value the maxEntries property may set.booleanisDebugEnabled()Deprecated.Enabled if number of transformer debug entries is greater than 0 AND there is not a test function generating output.protected voidremove(java.util.Deque<T> entries)Deprecated.Removes an entry.voidsetTransformerConfig(TransformerConfig transformerConfig)Deprecated.voidsetTransformerDebug(TransformerDebug transformerDebug)Deprecated.-
Methods inherited from class org.alfresco.util.LogAdapter
debug, error, error, fatal, fatal, info, info, isErrorEnabled, isFatalEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, trace, trace, warn, warn
-
-
-
-
Method Detail
-
getUpperMaxEntries
protected int getUpperMaxEntries()
Deprecated.Overridden to specify the maximum value the maxEntries property may set. Generally quite a small number as values are stored in memory.Returns 20 as this is debug and we must currently walk the whole structure each time an new request id is added.
-
getPropertyName
protected java.lang.String getPropertyName()
Deprecated.Overridden to specify the property name that specifies the maximum number of entries.
-
addOrModify
protected void addOrModify(java.util.Deque<org.alfresco.repo.content.transform.DebugEntry> entries, java.lang.Object message)Deprecated.Overridden in sub classes to add a new entry or modify and existing one
-
setTransformerDebug
public void setTransformerDebug(TransformerDebug transformerDebug)
Deprecated.
-
setTransformerConfig
public void setTransformerConfig(TransformerConfig transformerConfig)
Deprecated.- Parameters:
transformerConfig- used to access the property.
-
isDebugEnabled
public boolean isDebugEnabled()
Deprecated.Enabled if number of transformer debug entries is greater than 0 AND there is not a test function generating output.- Specified by:
isDebugEnabledin interfaceorg.apache.commons.logging.Log- Overrides:
isDebugEnabledin classorg.alfresco.util.LogAdapter
-
debug
public void debug(java.lang.Object message, java.lang.Throwable throwable)Deprecated.- Specified by:
debugin interfaceorg.apache.commons.logging.Log- Overrides:
debugin classorg.alfresco.util.LogAdapter- Parameters:
message- to be appended to the logthrowable- ignored
-
remove
protected void remove(java.util.Deque<T> entries)
Deprecated.Removes an entry. By default removes the first (oldest) entry by may be overridden.
-
getEntries
public java.lang.String[] getEntries(int n)
Deprecated.Returns the log entries.- Parameters:
n- the maximum number of entries to return. All if n is smaller or equal to zero.
-
getPropertyAndValue
public java.lang.String getPropertyAndValue(java.util.Properties defaultProperties)
Deprecated.The transformer property and value used to set this logger. This is commented out if the property has not been overridden (default is 0).- Parameters:
defaultProperties- the transformer.properties file values that may be overridden.- Returns:
- the transformer property and value.
-
-