org.norther.tammi.acorn.logger
Class StaticLogFactory

java.lang.Object
  extended by org.norther.tammi.acorn.logger.StaticLogFactory

public abstract class StaticLogFactory
extends Object

A convenience class to instantiate logs statically.

Author:
Ilkka Priha

Constructor Summary
StaticLogFactory()
           
 
Method Summary
static Log getLog()
          Gets an anonymous log instance from the log factory.
static Log getLog(Object object)
          Gets an object log instance from the log factory.
static Log getLog(Object object, Object context)
          Gets an object log instance from the log factory for the specified context.
static LogFactory getLogFactory()
          Gets the log factory instance.
static LogFactory getLogFactory(Object context)
          Gets the log factory instance for the specified context.
static void removeLogFactory(LogFactory factory)
          Removes the log factory instance.
static void setLogFactory(LogFactory factory)
          Sets the log factory instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticLogFactory

public StaticLogFactory()
Method Detail

getLog

public static Log getLog()
Gets an anonymous log instance from the log factory.

Returns:
a log instance.

getLog

public static Log getLog(Object object)
Gets an object log instance from the log factory.

Parameters:
object - the log object.
Returns:
a log instance.

getLog

public static Log getLog(Object object,
                         Object context)
Gets an object log instance from the log factory for the specified context.

Parameters:
object - the log object.
context - the log context.
Returns:
a log instance.

getLogFactory

public static LogFactory getLogFactory()
Gets the log factory instance.

Returns:
the log factory instance.

setLogFactory

public static void setLogFactory(LogFactory factory)
Sets the log factory instance.

Parameters:
factory - the log factory instance.

removeLogFactory

public static void removeLogFactory(LogFactory factory)
Removes the log factory instance.

Parameters:
factory - the log factory instance.

getLogFactory

public static LogFactory getLogFactory(Object context)
Gets the log factory instance for the specified context.

Parameters:
context - the context.
Returns:
the log factory instance.


Copyright © 2004 The Norther Organization. All rights reserved.