weborb.util.log
Interface ILogger

All Known Implementing Classes:
AbstractLogger, ConsoleLogger, DateLogger, FileNameLogger, Logger, SizeThresholdLogger, WriterLogger

public interface ILogger

ILogger

Author:
Midnight Coders, LLC

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()
           
 boolean isEnabled()
          Return true if the logger is enabled
 boolean isLogging(long mask)
           
 boolean isLogging(java.lang.String code)
           
 void setMask(long mask)
           
 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

long getMask()

setMask

void setMask(long mask)

isLogging

boolean isLogging(long mask)

isLogging

boolean isLogging(java.lang.String code)

startLogging

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

Parameters:
category - The category.

stopLogging

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

Parameters:
category - The category.

enable

void enable()
Enable this particular logger.


disable

void disable()
Disable this logger.


isEnabled

boolean isEnabled()
Return true if the logger is enabled


event

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.


Discuss WebORB

Copyright 2003-2008 Midnight Coders, Inc. All Rights Reserved.