org.nuiton.util
Class Log.LogEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.nuiton.util.Log.LogEvent
All Implemented Interfaces:
Serializable
Enclosing class:
Log

public static class Log.LogEvent
extends EventObject

Les events envoyes aux listeners

See Also:
Serialized Form

Field Summary
protected  String category
           
protected  Throwable exception
           
protected  Level level
           
protected  String message
           
protected  int taskMax
           
protected  int taskValue
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
Log.LogEvent(Object source, String category, Level level, String message, Throwable exception)
           
Log.LogEvent(Object source, String category, String message, int taskMax, int taskValue)
           
 
Method Summary
 String getCategory()
           
 Throwable getException()
          L'exception envoyé dans le log, si le log ne contient pas d'exception alors null est retourne.
 Level getLevel()
          Retourne une valeur que si l'event est un sendMessage, sinon null;
 String getMessage()
           
 int getTaskMax()
           
 int getTaskValue()
           
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

category

protected String category

level

protected Level level

message

protected String message

exception

protected Throwable exception

taskMax

protected int taskMax

taskValue

protected int taskValue
Constructor Detail

Log.LogEvent

public Log.LogEvent(Object source,
                    String category,
                    Level level,
                    String message,
                    Throwable exception)

Log.LogEvent

public Log.LogEvent(Object source,
                    String category,
                    String message,
                    int taskMax,
                    int taskValue)
Method Detail

getCategory

public String getCategory()

getLevel

public Level getLevel()
Retourne une valeur que si l'event est un sendMessage, sinon null;


getMessage

public String getMessage()

getException

public Throwable getException()
L'exception envoyé dans le log, si le log ne contient pas d'exception alors null est retourne.


getTaskMax

public int getTaskMax()

getTaskValue

public int getTaskValue()


Copyright © 2004-2009 CodeLutin. All Rights Reserved.