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()
|
||||
{
|
||||
return logger.isDebugEnabled();
|
||||
return isDebugLoggingEnabled();
|
||||
}
|
||||
|
||||
public void log(String str)
|
||||
{
|
||||
debug(str);
|
||||
}
|
||||
|
||||
public boolean isDebugLoggingEnabled()
|
||||
{
|
||||
return logger.isDebugEnabled();
|
||||
}
|
||||
|
||||
public void debug(String str)
|
||||
{
|
||||
logger.debug(str);
|
||||
}
|
||||
|
||||
public boolean isInfoLoggingEnabled()
|
||||
{
|
||||
return logger.isInfoEnabled();
|
||||
}
|
||||
|
||||
public void info(String str)
|
||||
{
|
||||
logger.info(str);
|
||||
}
|
||||
|
||||
public boolean isWarnLoggingEnabled()
|
||||
{
|
||||
return logger.isWarnEnabled();
|
||||
@@ -49,6 +69,16 @@ public final class ScriptLogger extends BaseProcessorExtension
|
||||
{
|
||||
logger.warn(str);
|
||||
}
|
||||
|
||||
public boolean isErrorLoggingEnabled()
|
||||
{
|
||||
return logger.isErrorEnabled();
|
||||
}
|
||||
|
||||
public void error(String str)
|
||||
{
|
||||
logger.error(str);
|
||||
}
|
||||
|
||||
public SystemOut getSystem()
|
||||
{
|
||||
@@ -62,5 +92,4 @@ public final class ScriptLogger extends BaseProcessorExtension
|
||||
System.out.println(str);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user