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, setLogLevel
public LogFileDebug()
public LogFileDebug(java.lang.String fname, boolean append) throws java.io.IOException
fname
- Stringappend
- booleanjava.io.IOException
protected final void open(java.lang.String fname, boolean append) throws java.io.IOException
fname
- Stringappend
- booleanjava.io.IOException
public void close()
close
in interface DebugInterface
close
in class DebugInterfaceBase
public void debugPrint(java.lang.String str, int level)
debugPrint
in interface DebugInterface
debugPrint
in class DebugInterfaceBase
str
- Stringlevel
- intpublic void debugPrintln(java.lang.String str, int level)
debugPrintln
in interface DebugInterface
debugPrintln
in class DebugInterfaceBase
str
- Stringpublic void initialize(org.springframework.extensions.config.ConfigElement params, ServerConfiguration config) throws java.lang.Exception
initialize
in interface DebugInterface
initialize
in class DebugInterfaceBase
params
- ConfigElementconfig
- ServerConfigurationjava.lang.Exception
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.