public class LogFileDebug extends DebugInterfaceBase
Output the debug information to a log file.
| Constructor and Description |
|---|
LogFileDebug()
Default constructor
|
LogFileDebug(java.lang.String fname,
boolean append)
Create a log file debug object using the specified file name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the debug output.
|
void |
debugPrint(java.lang.String str,
int level)
Output a debug string with a specific logging level
|
void |
debugPrintln(java.lang.String str,
int level)
Output a debug string, and a newline, with a specific logging level
|
void |
initialize(org.springframework.extensions.config.ConfigElement params,
ServerConfiguration config)
Initialize the debug interface using the specified parameters.
|
protected void |
open(java.lang.String fname,
boolean append)
Open the output file stream
|
debugPrint, debugPrintln, debugPrintln, getLogLevel, setLogLevelpublic LogFileDebug()
public LogFileDebug(java.lang.String fname,
boolean append)
throws java.io.IOException
fname - Stringappend - booleanjava.io.IOExceptionprotected final void open(java.lang.String fname,
boolean append)
throws java.io.IOException
fname - Stringappend - booleanjava.io.IOExceptionpublic void close()
close in interface DebugInterfaceclose in class DebugInterfaceBasepublic void debugPrint(java.lang.String str,
int level)
debugPrint in interface DebugInterfacedebugPrint in class DebugInterfaceBasestr - Stringlevel - intpublic void debugPrintln(java.lang.String str,
int level)
debugPrintln in interface DebugInterfacedebugPrintln in class DebugInterfaceBasestr - Stringpublic void initialize(org.springframework.extensions.config.ConfigElement params,
ServerConfiguration config)
throws java.lang.Exception
initialize in interface DebugInterfaceinitialize in class DebugInterfaceBaseparams - ConfigElementconfig - ServerConfigurationjava.lang.ExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.