org.alfresco.filesys.debug
Class FileServerDebugInterface

java.lang.Object
  extended by 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.DebugInterface

Alfresco File Server Debug Interface Class Adapts JLAN's debug information out to Alfresco's logging


Constructor Summary
FileServerDebugInterface()
          Class constructor
 
Method Summary
 void close()
           
 void debugPrint(java.lang.String str)
           
 void debugPrint(java.lang.String str, int level)
          Output a debug string.
 void debugPrintln(java.lang.Exception ex, int level)
           
 void debugPrintln(java.lang.String str)
           
 void debugPrintln(java.lang.String str, int level)
          Output a debug string, and a newline.
 void debugPrintln(java.lang.Throwable ex, int level)
          Output an exception
 int getLogLevel()
          Map logger level to JLAN debug level
 void initialize(org.springframework.extensions.config.ConfigElement params)
          Initialize the debug interface using the specified named parameters.
 void initialize(org.springframework.extensions.config.ConfigElement params, org.alfresco.jlan.server.config.ServerConfiguration config)
           
protected  void logOutput(java.lang.String str, int level)
          Output to the logger at the appropriate log level
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileServerDebugInterface

public FileServerDebugInterface()
Class constructor

Method Detail

debugPrint

public void debugPrint(java.lang.String str,
                       int level)
Output a debug string.

Specified by:
debugPrint in interface org.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:
debugPrintln in interface org.alfresco.jlan.debug.DebugInterface
Parameters:
str - String

debugPrintln

public void debugPrintln(java.lang.Throwable ex,
                         int level)
Output an exception

Parameters:
ex - Throwable
level - int

logOutput

protected void logOutput(java.lang.String str,
                         int level)
Output to the logger at the appropriate log level

Parameters:
str - String
level - int

initialize

public void initialize(org.springframework.extensions.config.ConfigElement params)
                throws java.lang.Exception
Initialize 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:
getLogLevel in interface org.alfresco.jlan.debug.DebugInterface

close

public void close()
Specified by:
close in interface org.alfresco.jlan.debug.DebugInterface

debugPrint

public void debugPrint(java.lang.String str)
Specified by:
debugPrint in interface org.alfresco.jlan.debug.DebugInterface

debugPrintln

public void debugPrintln(java.lang.String str)
Specified by:
debugPrintln in interface org.alfresco.jlan.debug.DebugInterface

debugPrintln

public void debugPrintln(java.lang.Exception ex,
                         int level)
Specified by:
debugPrintln in interface org.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:
initialize in interface org.alfresco.jlan.debug.DebugInterface
Throws:
java.lang.Exception


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.