public class LogFileDebug extends DebugInterfaceBase
Output the debug information to a log file.
| Constructor and Description |
|---|
LogFileDebug()
Default constructor
|
LogFileDebug(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(String str,
int level)
Output a debug string with a specific logging level
|
void |
debugPrintln(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(String fname,
boolean append)
Open the output file stream
|
debugPrint, debugPrintln, debugPrintln, getLogLevel, setLogLevelpublic LogFileDebug()
public LogFileDebug(String fname, boolean append) throws IOException
fname - Stringappend - booleanIOExceptionprotected final void open(String fname, boolean append) throws IOException
fname - Stringappend - booleanIOExceptionpublic void close()
close in interface DebugInterfaceclose in class DebugInterfaceBasepublic void debugPrint(String str, int level)
debugPrint in interface DebugInterfacedebugPrint in class DebugInterfaceBasestr - Stringlevel - intpublic void debugPrintln(String str, int level)
debugPrintln in interface DebugInterfacedebugPrintln in class DebugInterfaceBasestr - Stringpublic void initialize(org.springframework.extensions.config.ConfigElement params,
ServerConfiguration config)
throws Exception
initialize in interface DebugInterfaceinitialize in class DebugInterfaceBaseparams - ConfigElementconfig - ServerConfigurationExceptionCopyright © 2005–2014 Alfresco Software. All rights reserved.