electric.util.log
Interface ILogger

All Known Implementing Classes:
Logger

public interface ILogger

ILogger declares methods that are implemented by all loggers.

Author:
webMethods

Method Summary
 void disable()
          Disable this logger.
 void enable()
          Enable this particular logger.
 void event(java.lang.String category, java.lang.Object event, java.util.Date timestamp)
          If enabled, log an event of the specified category.
 long getMask()
          Return the mask that defines which events I should log.
 boolean isEnabled()
          Return true if the logger is enabled
 boolean isLogging(long mask)
          Return true if at the logger is logging a category defined by the mask.
 boolean isLogging(java.lang.String code)
          Return true if the logger is logging the specified category.
 void setMask(long mask)
          Set the mask that defines the events which I should log.
 void startLogging(java.lang.String category)
          Start logging events of the specified category.
 void stopLogging(java.lang.String category)
          Stop logging events of the specified category.
 

Method Detail

getMask

public long getMask()
Return the mask that defines which events I should log.


setMask

public void setMask(long mask)
Set the mask that defines the events which I should log.

Parameters:
mask -

isLogging

public boolean isLogging(long mask)
Return true if at the logger is logging a category defined by the mask.

Parameters:
mask - The mask.

isLogging

public boolean isLogging(java.lang.String code)
Return true if the logger is logging the specified category.

Parameters:
code - The category.

startLogging

public void startLogging(java.lang.String category)
Start logging events of the specified category.

Parameters:
category - The category.

stopLogging

public void stopLogging(java.lang.String category)
Stop logging events of the specified category.

Parameters:
category - The category.

enable

public void enable()
Enable this particular logger.


disable

public void disable()
Disable this logger.


isEnabled

public boolean isEnabled()
Return true if the logger is enabled


event

public void event(java.lang.String category,
                  java.lang.Object event,
                  java.util.Date timestamp)
If enabled, log an event of the specified category.

Parameters:
category - The category.
event - The event, which is often just a simple string.
timestamp - The time of the event was logged.


copyright© 2001-2004 by webMethods All Rights Reserved.