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 Object
implements org.alfresco.jlan.debug.DebugInterface
Alfresco File Server Debug Interface Class
Adapts JLAN's debug information out to Alfresco's logging
- Author:
- gkspencer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voiddebugPrint(String str) voiddebugPrint(String str, int level) Output a debug string.voiddebugPrintln(Exception ex, int level) voiddebugPrintln(String str) voiddebugPrintln(String str, int level) Output a debug string, and a newline.voiddebugPrintln(Throwable ex, int level) Output an exceptionintMap 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 voidOutput to the logger at the appropriate log level
-
Constructor Details
-
FileServerDebugInterface
public FileServerDebugInterface()Class constructor
-
-
Method Details
-
debugPrint
Output a debug string.- Specified by:
debugPrintin interfaceorg.alfresco.jlan.debug.DebugInterface- Parameters:
str- String
-
debugPrintln
Output a debug string, and a newline.- Specified by:
debugPrintlnin interfaceorg.alfresco.jlan.debug.DebugInterface- Parameters:
str- String
-
debugPrintln
Output an exception- Parameters:
ex- Throwablelevel- int
-
logOutput
Output to the logger at the appropriate log level- Parameters:
str- Stringlevel- int
-
initialize
Initialize the debug interface using the specified named parameters.- Parameters:
params- ConfigElement- Throws:
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
- Specified by:
debugPrintin interfaceorg.alfresco.jlan.debug.DebugInterface
-
debugPrintln
- Specified by:
debugPrintlnin interfaceorg.alfresco.jlan.debug.DebugInterface
-
debugPrintln
- 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 Exception - Specified by:
initializein interfaceorg.alfresco.jlan.debug.DebugInterface- Throws:
Exception
-