jpl.mipl.pgs.utils.logging
Class DefaultLogger

java.lang.Object
  extended by java.util.logging.Logger
      extended by jpl.mipl.pgs.utils.logging.DefaultLogger

Deprecated. Use LoggerFactory instead.

public class DefaultLogger
extends Logger

Purpose: An implementation of the java.util.logging.Logger class. Note: This class is not used with the new implementation and will be removed once MRO stops using it.


     Copyright 2002, California Institute of Technology. 
     ALL RIGHTS RESERVED.
     U.S. Government Sponsorship acknowledge.2004.

 

Version:
1.0
Author:
Raj Patel (rrp@mipl.jpl.nasa.gov)

Field Summary
static int DEBUG_LOG_LEVEL
          Deprecated.  
static int ERROR_LOG_LEVEL
          Deprecated.  
static int HIGHEST_LOG_LEVEL
          Deprecated.  
 
Fields inherited from class java.util.logging.Logger
global
 
Constructor Summary
DefaultLogger(String name, String resourceBundleName)
          Deprecated.  
 
Method Summary
 void debug(String message)
          Deprecated.  
 void debug(String message, Throwable t)
          Deprecated.  
 void error(String message)
          Deprecated.  
 void error(String message, Throwable t)
          Deprecated.  
 Level int2level(int level)
          Deprecated. Converts the integer parameter level to java.util.logging.Level
 void logMessage(int level, String message)
          Deprecated. Converts the integer parameter level to java.util.logging.Level and logs the message.
 void logMessage(int level, String message, Throwable t)
          Deprecated. Converts the integer parameter level to java.util.logging.Level and logs the message.
 
Methods inherited from class java.util.logging.Logger
addHandler, config, entering, entering, entering, exiting, exiting, fine, finer, finest, getAnonymousLogger, getAnonymousLogger, getFilter, getHandlers, getLevel, getLogger, getLogger, getName, getParent, getResourceBundle, getResourceBundleName, getUseParentHandlers, info, isLoggable, log, log, log, log, log, logp, logp, logp, logp, logrb, logrb, logrb, logrb, removeHandler, setFilter, setLevel, setParent, setUseParentHandlers, severe, throwing, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HIGHEST_LOG_LEVEL

public static final int HIGHEST_LOG_LEVEL
Deprecated. 

DEBUG_LOG_LEVEL

public static final int DEBUG_LOG_LEVEL
Deprecated. 

ERROR_LOG_LEVEL

public static final int ERROR_LOG_LEVEL
Deprecated. 
Constructor Detail

DefaultLogger

public DefaultLogger(String name,
                     String resourceBundleName)
Deprecated. 
Method Detail

logMessage

public void logMessage(int level,
                       String message,
                       Throwable t)
                throws IllegalArgumentException
Deprecated. 
Converts the integer parameter level to java.util.logging.Level and logs the message.

Throws:
IllegalArgumentException
See Also:
Logger.log(java.util.logging.Level,String,Throwable);

error

public void error(String message)
           throws IllegalArgumentException
Deprecated. 
Throws:
IllegalArgumentException

error

public void error(String message,
                  Throwable t)
           throws IllegalArgumentException
Deprecated. 
Throws:
IllegalArgumentException

debug

public void debug(String message,
                  Throwable t)
           throws IllegalArgumentException
Deprecated. 
Throws:
IllegalArgumentException

debug

public void debug(String message)
           throws IllegalArgumentException
Deprecated. 
Throws:
IllegalArgumentException

logMessage

public void logMessage(int level,
                       String message)
                throws IllegalArgumentException
Deprecated. 
Converts the integer parameter level to java.util.logging.Level and logs the message.

Throws:
IllegalArgumentException
See Also:
Logger.log(java.util.logging.Level,String);

int2level

public Level int2level(int level)
                throws IllegalArgumentException
Deprecated. 
Converts the integer parameter level to java.util.logging.Level

Throws:
IllegalArgumentException