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:
Kevin Roast
2011-08-15 13:38:00 +00:00
parent a73cccdc8b
commit 85fb0d109b

View File

@@ -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);
}
}
}