Package org.alfresco.filesys.debug
Class FileServerDebugInterface
- java.lang.Object
-
- org.alfresco.filesys.debug.FileServerDebugInterface
-
- All Implemented Interfaces:
org.alfresco.jlan.debug.DebugInterface
public class FileServerDebugInterface extends java.lang.Object implements org.alfresco.jlan.debug.DebugInterfaceAlfresco File Server Debug Interface Class Adapts JLAN's debug information out to Alfresco's logging- Author:
- gkspencer
-
-
Constructor Summary
Constructors Constructor Description FileServerDebugInterface()Class constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voiddebugPrint(java.lang.String str)voiddebugPrint(java.lang.String str, int level)Output a debug string.voiddebugPrintln(java.lang.Exception ex, int level)voiddebugPrintln(java.lang.String str)voiddebugPrintln(java.lang.String str, int level)Output a debug string, and a newline.voiddebugPrintln(java.lang.Throwable ex, int level)Output an exceptionintgetLogLevel()Map logger level to JLAN debug levelvoidinitialize(org.springframework.extensions.config.ConfigElement params)Initialize the debug interface using the specified named parameters.voidinitialize(org.springframework.extensions.config.ConfigElement params, org.alfresco.jlan.server.config.ServerConfiguration config)protected voidlogOutput(java.lang.String str, int level)Output to the logger at the appropriate log level
-
-
-
Method Detail
-
debugPrint
public void debugPrint(java.lang.String str, int level)Output a debug string.- Specified by:
debugPrintin interfaceorg.alfresco.jlan.debug.DebugInterface- Parameters:
str- String
-
debugPrintln
public void debugPrintln(java.lang.String str, int level)Output a debug string, and a newline.- Specified by:
debugPrintlnin interfaceorg.alfresco.jlan.debug.DebugInterface- Parameters:
str- String
-
debugPrintln
public void debugPrintln(java.lang.Throwable ex, int level)Output an exception- Parameters:
ex- Throwablelevel- int
-
logOutput
protected void logOutput(java.lang.String str, int level)Output to the logger at the appropriate log level- Parameters:
str- Stringlevel- int
-
initialize
public void initialize(org.springframework.extensions.config.ConfigElement params) throws java.lang.ExceptionInitialize the debug interface using the specified named parameters.- Parameters:
params- ConfigElement- Throws:
java.lang.Exception
-
getLogLevel
public int getLogLevel()
Map logger level to JLAN debug level- Specified by:
getLogLevelin interfaceorg.alfresco.jlan.debug.DebugInterface
-
close
public void close()
- Specified by:
closein interfaceorg.alfresco.jlan.debug.DebugInterface
-
debugPrint
public void debugPrint(java.lang.String str)
- Specified by:
debugPrintin interfaceorg.alfresco.jlan.debug.DebugInterface
-
debugPrintln
public void debugPrintln(java.lang.String str)
- Specified by:
debugPrintlnin interfaceorg.alfresco.jlan.debug.DebugInterface
-
debugPrintln
public void debugPrintln(java.lang.Exception ex, int level)- Specified by:
debugPrintlnin interfaceorg.alfresco.jlan.debug.DebugInterface
-
initialize
public void initialize(org.springframework.extensions.config.ConfigElement params, org.alfresco.jlan.server.config.ServerConfiguration config) throws java.lang.Exception- Specified by:
initializein interfaceorg.alfresco.jlan.debug.DebugInterface- Throws:
java.lang.Exception
-
-