com.evermind.util
Interface Logger


public interface Logger

A logger is a receiver of LogEvents that process them in some manner. For instance one logger can log to a file, another to a database, a third pop up a GUI window and so on.


Method Summary
 void close()
          Disposes this logger.
 void init(java.util.Properties properties)
          Initializes the logger with the specified properties
 void log(LogEvent event)
          Logs an event.
 void setContext(LoggerContext context)
          Sets the logger's context.
 void setLogTimestamp(boolean timestamp)
          Set the togglable log-timestamp option, whether or not the logger will write the time of the event.
 

Method Detail

setContext

void setContext(LoggerContext context)
Sets the logger's context. The context is used to access context-based services like "pretty printing" of stack-traces etc.


init

void init(java.util.Properties properties)
Initializes the logger with the specified properties


log

void log(LogEvent event)
Logs an event.


setLogTimestamp

void setLogTimestamp(boolean timestamp)
Set the togglable log-timestamp option, whether or not the logger will write the time of the event.


close

void close()
Disposes this logger. After this call no more calls will be made to it.