public class LogSetupHelper
extends java.lang.Object
Constructor and Description |
---|
LogSetupHelper() |
Modifier and Type | Method and Description |
---|---|
static StreamAppender |
addStreamAppender(java.io.OutputStream stdout,
java.io.OutputStream stderr)
Used to add an appender to the logger that logs to a stream.
|
static void |
initLogging(java.io.OutputStream stdout,
java.io.OutputStream stderr)
Initialise the logging with default settings, and send the output to the streams.
|
static void |
initLogingFromConfigFile(java.io.File logConfigFile)
Initialise the logging using the given configuration file
|
static void |
initLogingInternalConfigFile(java.lang.String configName)
Initialise the logging using the configuration file stored in the same package as this class.
|
static void |
removeStreamAppender(StreamAppender appender)
Used to remove an appender
|
public static void initLogingFromConfigFile(java.io.File logConfigFile)
logConfigFile
- The logging configuration filepublic static void initLogingInternalConfigFile(java.lang.String configName)
configName
- The name of the configuration file stored in the same package as this class.public static void initLogging(java.io.OutputStream stdout, java.io.OutputStream stderr)
stdout
- The stdout streamstderr
- The stderr streampublic static StreamAppender addStreamAppender(java.io.OutputStream stdout, java.io.OutputStream stderr)
stdout
- The stdout streamstderr
- The stderr streampublic static void removeStreamAppender(StreamAppender appender)
appender
- The appender to remove