org.eclipse.birt.data.oda.util.logging
Class Logger

java.lang.Object
  extended byorg.eclipse.birt.data.oda.util.logging.Logger

Deprecated. As of BIRT 2.0, replaced by org.eclipse.datatools.connectivity.oda.util.logging.Logger .
The BIRT ODA run-time framework has been migrated to the Eclipse Data Tools Platform (DTP) project.

public class Logger
extends java.lang.Object

Logger allows callers to log messages for their application. Loggers should be created using the LogManager.createLogger method, which creates named loggers with specific logging settings. Loggers should be named appropriately based on the application using the logging framework to prevent logger name collision. For example, if logging were done on javax.sql package, then an appropriate logger name would be "javax.sql".


Constructor Summary
protected Logger(java.lang.String loggerName)
          Deprecated. Creates a Logger instance with the specified name.
 
Method Summary
 void config(java.lang.String message)
          Deprecated. Log a CONFIG log message.
 void fine(java.lang.String message)
          Deprecated. Log a FINE log message.
 void finer(java.lang.String message)
          Deprecated. Log a FINER log message.
 void finest(java.lang.String message)
          Deprecated. Log a FINEST log message.
protected  Handler getHandler()
          Deprecated. Gets the associated Handler.
 Level getLevel()
          Deprecated. Get the associated log level.
 java.lang.String getName()
          Deprecated. Gets the name of this Logger.
 void info(java.lang.String message)
          Deprecated. Log a INFO log message.
 boolean isLoggable(Level level)
          Deprecated. Checks whether the specified level is loggable by this Logger.
 void log(Level level, java.lang.String message)
          Deprecated. Log a message at the specified level.
 void log(Level level, java.lang.Throwable thrown)
          Deprecated. Log a throwable at the specified level.
protected  void setHandler(Handler handler)
          Deprecated. Sets the specified Handler to associate with this Logger.
 void setLevel(Level level)
          Deprecated. Sets the level to associate with this Logger.
 void severe(java.lang.String message)
          Deprecated. Log a SEVERE log message.
 void severe(java.lang.Throwable thrown)
          Deprecated. Log a SEVERE error or exception.
 void warning(java.lang.String message)
          Deprecated. Log a WARNING log message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Logger

protected Logger(java.lang.String loggerName)
Deprecated. 
Creates a Logger instance with the specified name. The name should be appropriately named based on the application that is doing the logging.

Parameters:
loggerName - the name of the logger.
Method Detail

severe

public void severe(java.lang.Throwable thrown)
Deprecated. 
Log a SEVERE error or exception.

Parameters:
thrown - the throwable being thrown.

severe

public void severe(java.lang.String message)
Deprecated. 
Log a SEVERE log message.

Parameters:
message - the log message.

warning

public void warning(java.lang.String message)
Deprecated. 
Log a WARNING log message.

Parameters:
message - the log message.

info

public void info(java.lang.String message)
Deprecated. 
Log a INFO log message.

Parameters:
message - the log message.

config

public void config(java.lang.String message)
Deprecated. 
Log a CONFIG log message.

Parameters:
message - the log message.

fine

public void fine(java.lang.String message)
Deprecated. 
Log a FINE log message.

Parameters:
message - the log message.

finer

public void finer(java.lang.String message)
Deprecated. 
Log a FINER log message.

Parameters:
message - the log message.

finest

public void finest(java.lang.String message)
Deprecated. 
Log a FINEST log message.

Parameters:
message - the log message.

log

public void log(Level level,
                java.lang.String message)
Deprecated. 
Log a message at the specified level.

Parameters:
level - the log level to log the message.
message - the log message.

log

public void log(Level level,
                java.lang.Throwable thrown)
Deprecated. 
Log a throwable at the specified level.

Parameters:
level - the log level to log the throwable.
thrown - the throwable to log.

getLevel

public Level getLevel()
Deprecated. 
Get the associated log level.

Returns:
the associated log level.

setLevel

public void setLevel(Level level)
Deprecated. 
Sets the level to associate with this Logger.

Parameters:
level - the log level to associate.

getName

public java.lang.String getName()
Deprecated. 
Gets the name of this Logger.

Returns:
the name of the Logger.

getHandler

protected Handler getHandler()
Deprecated. 
Gets the associated Handler.

Returns:
the associated Handler.

setHandler

protected void setHandler(Handler handler)
Deprecated. 
Sets the specified Handler to associate with this Logger.

Parameters:
handler - the Handler to associate.

isLoggable

public boolean isLoggable(Level level)
Deprecated. 
Checks whether the specified level is loggable by this Logger. Also checks whether the Logger level is set to OFF.

Parameters:
level - the log level.
Returns:
true if the specified level is higher or equal to the Logger's level and if the Logger's level isn't OFF.


Copyright © 2005 Actuate Corp. All rights reserved.