mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Added missing script logger API method to mirror log4j:
- isInfoLoggingEnabled() info() - isDebugLoggingEnabled() debug() - isErrorLoggingEnabled() error() git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29760 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -32,14 +32,34 @@ public final class ScriptLogger extends BaseProcessorExtension
|
|||||||
|
|
||||||
public boolean isLoggingEnabled()
|
public boolean isLoggingEnabled()
|
||||||
{
|
{
|
||||||
return logger.isDebugEnabled();
|
return isDebugLoggingEnabled();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void log(String str)
|
public void log(String str)
|
||||||
|
{
|
||||||
|
debug(str);
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isDebugLoggingEnabled()
|
||||||
|
{
|
||||||
|
return logger.isDebugEnabled();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void debug(String str)
|
||||||
{
|
{
|
||||||
logger.debug(str);
|
logger.debug(str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isInfoLoggingEnabled()
|
||||||
|
{
|
||||||
|
return logger.isInfoEnabled();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void info(String str)
|
||||||
|
{
|
||||||
|
logger.info(str);
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isWarnLoggingEnabled()
|
public boolean isWarnLoggingEnabled()
|
||||||
{
|
{
|
||||||
return logger.isWarnEnabled();
|
return logger.isWarnEnabled();
|
||||||
@@ -50,6 +70,16 @@ public final class ScriptLogger extends BaseProcessorExtension
|
|||||||
logger.warn(str);
|
logger.warn(str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isErrorLoggingEnabled()
|
||||||
|
{
|
||||||
|
return logger.isErrorEnabled();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void error(String str)
|
||||||
|
{
|
||||||
|
logger.error(str);
|
||||||
|
}
|
||||||
|
|
||||||
public SystemOut getSystem()
|
public SystemOut getSystem()
|
||||||
{
|
{
|
||||||
return systemOut;
|
return systemOut;
|
||||||
@@ -62,5 +92,4 @@ public final class ScriptLogger extends BaseProcessorExtension
|
|||||||
System.out.println(str);
|
System.out.println(str);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user