com.orderlysoftware.orderlycalls.base
Class ServiceLogger

java.lang.Object
  extended by java.util.logging.Logger
      extended by com.orderlysoftware.orderlycalls.base.ServiceLogger

public class ServiceLogger
extends java.util.logging.Logger

A thin wrapper around the Loggerobject to give named entries in the log file for services.

Author:
Matt King, M.A. Oxon.

Field Summary
 
Fields inherited from class java.util.logging.Logger
global
 
Constructor Summary
ServiceLogger(java.util.logging.Logger log)
           
 
Method Summary
 void addHandler(java.util.logging.Handler handler)
           
static java.util.logging.Logger getAnonymousLogger()
           
static java.util.logging.Logger getAnonymousLogger(java.lang.String resourceBundleName)
           
 java.util.logging.Filter getFilter()
           
 java.util.logging.Handler[] getHandlers()
           
 java.util.logging.Level getLevel()
           
static java.util.logging.Logger getLogger(java.lang.String name)
           
static java.util.logging.Logger getLogger(java.lang.String name, java.lang.String resourceBundleName)
           
 java.lang.String getName()
           
 java.util.logging.Logger getParent()
           
 java.util.ResourceBundle getResourceBundle()
           
 java.lang.String getResourceBundleName()
           
 boolean getUseParentHandlers()
           
 boolean isLoggable(java.util.logging.Level level)
           
 void log(java.util.logging.LogRecord record)
           
 void removeHandler(java.util.logging.Handler handler)
           
 void setFilter(java.util.logging.Filter newFilter)
           
 void setLevel(java.util.logging.Level newLevel)
           
 void setParent(java.util.logging.Logger parent)
           
 ServiceLogger setPrefix(java.lang.String prefix)
           
 void setUseParentHandlers(boolean useParentHandlers)
           
 
Methods inherited from class java.util.logging.Logger
config, entering, entering, entering, exiting, exiting, fine, finer, finest, info, log, log, log, log, logp, logp, logp, logp, logrb, logrb, logrb, logrb, severe, throwing, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceLogger

public ServiceLogger(java.util.logging.Logger log)
Method Detail

addHandler

public void addHandler(java.util.logging.Handler handler)
Overrides:
addHandler in class java.util.logging.Logger

setPrefix

public ServiceLogger setPrefix(java.lang.String prefix)

getAnonymousLogger

public static java.util.logging.Logger getAnonymousLogger()

getAnonymousLogger

public static java.util.logging.Logger getAnonymousLogger(java.lang.String resourceBundleName)

getFilter

public java.util.logging.Filter getFilter()
Overrides:
getFilter in class java.util.logging.Logger

getHandlers

public java.util.logging.Handler[] getHandlers()
Overrides:
getHandlers in class java.util.logging.Logger

getLevel

public java.util.logging.Level getLevel()
Overrides:
getLevel in class java.util.logging.Logger

getLogger

public static java.util.logging.Logger getLogger(java.lang.String name)

getLogger

public static java.util.logging.Logger getLogger(java.lang.String name,
                                                 java.lang.String resourceBundleName)

getName

public java.lang.String getName()
Overrides:
getName in class java.util.logging.Logger

getParent

public java.util.logging.Logger getParent()
Overrides:
getParent in class java.util.logging.Logger

getResourceBundle

public java.util.ResourceBundle getResourceBundle()
Overrides:
getResourceBundle in class java.util.logging.Logger

getResourceBundleName

public java.lang.String getResourceBundleName()
Overrides:
getResourceBundleName in class java.util.logging.Logger

getUseParentHandlers

public boolean getUseParentHandlers()
Overrides:
getUseParentHandlers in class java.util.logging.Logger

isLoggable

public boolean isLoggable(java.util.logging.Level level)
Overrides:
isLoggable in class java.util.logging.Logger

log

public void log(java.util.logging.LogRecord record)
Overrides:
log in class java.util.logging.Logger

removeHandler

public void removeHandler(java.util.logging.Handler handler)
Overrides:
removeHandler in class java.util.logging.Logger

setFilter

public void setFilter(java.util.logging.Filter newFilter)
Overrides:
setFilter in class java.util.logging.Logger

setLevel

public void setLevel(java.util.logging.Level newLevel)
Overrides:
setLevel in class java.util.logging.Logger

setParent

public void setParent(java.util.logging.Logger parent)
Overrides:
setParent in class java.util.logging.Logger

setUseParentHandlers

public void setUseParentHandlers(boolean useParentHandlers)
Overrides:
setUseParentHandlers in class java.util.logging.Logger