org.stanwood.media.logging
Class LogSetupHelper

java.lang.Object
  extended by org.stanwood.media.logging.LogSetupHelper

public class LogSetupHelper
extends java.lang.Object

This class is used to help with setting up the logging.


Constructor Summary
LogSetupHelper()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogSetupHelper

public LogSetupHelper()
Method Detail

initLogingFromConfigFile

public static void initLogingFromConfigFile(java.io.File logConfigFile)
Initialise the logging using the given configuration file

Parameters:
logConfigFile - The logging configuration file

initLogingInternalConfigFile

public static void initLogingInternalConfigFile(java.lang.String configName)
Initialise the logging using the configuration file stored in the same package as this class.

Parameters:
configName - The name of the configuration file stored in the same package as this class.

initLogging

public static void initLogging(java.io.OutputStream stdout,
                               java.io.OutputStream stderr)
Initialise the logging with default settings, and send the output to the streams.

Parameters:
stdout - The stdout stream
stderr - The stderr stream