com.rhi.architecture.logging
Class DefaultLogFactory

java.lang.Object
  extended bycom.rhi.architecture.logging.LogFactory
      extended bycom.rhi.architecture.logging.DefaultLogFactory
All Implemented Interfaces:
Resource

public class DefaultLogFactory
extends LogFactory

DefaultLogFactory used to construct DefaultLogger which logs all messages to stderr.

Version:
1.0
Author:
Pete McKinstry

Field Summary
 
Fields inherited from class com.rhi.architecture.logging.LogFactory
KEY
 
Constructor Summary
DefaultLogFactory()
           
 
Method Summary
 void close()
          Perform whatever cleanup is required of the underlying object..
 Logger getDefaultLogger()
          There is only 1 stderr, therefore return the 1 Logger which exists.
 Logger getLogger(java.lang.String type)
          For the default logger, there is no such thing as a logger w/ a specific name, so just return stderr for everything.
 void init(java.util.Properties p)
          init()
 
Methods inherited from class com.rhi.architecture.logging.LogFactory
getFactory, getLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLogFactory

public DefaultLogFactory()
Method Detail

init

public void init(java.util.Properties p)
          throws InitializationException
init()

Parameters:
p -
Throws:
InitializationException
See Also:
Resource.init(java.util.Properties)

close

public void close()
Description copied from interface: Resource
Perform whatever cleanup is required of the underlying object..

See Also:
Resource.close()

getDefaultLogger

public Logger getDefaultLogger()
                        throws ConfigurationException
There is only 1 stderr, therefore return the 1 Logger which exists.

Specified by:
getDefaultLogger in class LogFactory
Returns:
Throws:
ConfigurationException
See Also:
LogFactory.getDefaultLogger()

getLogger

public Logger getLogger(java.lang.String type)
                 throws ConfigurationException
For the default logger, there is no such thing as a logger w/ a specific name, so just return stderr for everything.

Specified by:
getLogger in class LogFactory
Parameters:
type -
Returns:
Logger
Throws:
ConfigurationException
See Also:
LogFactory.getLogger(String)


Copyright © 2002-2004 Robert Half International. All Rights Reserved.