Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.eireneh.util
Class Logger  view Logger download Logger.java

java.lang.Object
  extended bycom.eireneh.util.Logger

public class Logger
extends java.lang.Object

This package looks after Exceptions as they happen.
Distribution Licence:
Project B is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
The License is available on the internet here, by writing to Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA, Or locally at the Licence link below.
The copyright to this program is held by it's authors.


Field Summary
protected static EventListenerList log_list
          The list of listeners
private static java.util.Hashtable loggers
          The list of generated Loggers
private  java.lang.String source
          The originator of the message
 
Constructor Summary
protected Logger(java.lang.String source)
          Simple ctor for use only with getLogger(String)
 
Method Summary
static void addLogCaptureListener(com.eireneh.util.event.CaptureListener li)
          Add an Exception listener to the list of things wanting to know whenever we capture an Exception
 void config(java.lang.String message)
          Log a message
 void fine(java.lang.String message)
          Log a message
 void finer(java.lang.String message)
          Log a message
 void finest(java.lang.String message)
          Log a message
protected static void fireCapture(EventListenerList list, com.eireneh.util.event.CaptureEvent ev)
          Log a message
static java.lang.String getHTMLDescription(java.lang.Throwable ex)
          Gets a short HTML description of an Exception for display in a window
static Logger getLogger(java.lang.String source)
          Create a new Logger
 void info(java.lang.String message)
          Log a message
 void log(int level, java.lang.String message)
          Log a message to a specific log level
 void log(int level, java.lang.String message, java.lang.Throwable prob)
          Log an Exception but don't tell the user about it
static void removeLogCaptureListener(com.eireneh.util.event.CaptureListener li)
          Remove an Exception listener from the list of things wanting to know whenever we capture an Exception
 void severe(java.lang.String message)
          Log a message
 void warning(java.lang.String message)
          Log a message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

source

private java.lang.String source
The originator of the message


loggers

private static java.util.Hashtable loggers
The list of generated Loggers


log_list

protected static EventListenerList log_list
The list of listeners

Constructor Detail

Logger

protected Logger(java.lang.String source)
Simple ctor for use only with getLogger(String)

Method Detail

getLogger

public static Logger getLogger(java.lang.String source)
Create a new Logger


log

public void log(int level,
                java.lang.String message)
Log a message to a specific log level


log

public void log(int level,
                java.lang.String message,
                java.lang.Throwable prob)
Log an Exception but don't tell the user about it


finest

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


finer

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


fine

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


info

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


config

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


warning

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


severe

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


fireCapture

protected static void fireCapture(EventListenerList list,
                                  com.eireneh.util.event.CaptureEvent ev)
Log a message


getHTMLDescription

public static java.lang.String getHTMLDescription(java.lang.Throwable ex)
Gets a short HTML description of an Exception for display in a window


addLogCaptureListener

public static void addLogCaptureListener(com.eireneh.util.event.CaptureListener li)
Add an Exception listener to the list of things wanting to know whenever we capture an Exception


removeLogCaptureListener

public static void removeLogCaptureListener(com.eireneh.util.event.CaptureListener li)
Remove an Exception listener from the list of things wanting to know whenever we capture an Exception