LogEvent.java :  » Web-Framework » anvil » anvil » Java Open Source

Java Open Source » Web Framework » anvil 
anvil » anvil » LogEvent.java
/*
 * $Id: LogEvent.java,v 1.2 2002/09/16 08:05:02 jkl Exp $
 *
 * Copyright (c) 2002 Njet Communications Ltd. All Rights Reserved.
 *
 * Use is subject to license terms, as defined in
 * Anvil Sofware License, Version 1.1. See LICENSE 
 * file, or http://njet.org/license-1.1.txt
 */
package anvil;

/**
 * class LogEvent
 *
 * @author  Jani Lehtimki
 */
public class LogEvent 
{

  private int _severity;
  private String _message;
  private Throwable _throwable;
  private long _timestamp;
  private Thread _thread;
  private Log _log;
  

  public LogEvent(Log log, int severity, Object message, Throwable throwable)
  {
    _log = log;
    _timestamp = System.currentTimeMillis();
    _severity = severity;
    _message = message.toString();
    _throwable = throwable;
    _thread = Thread.currentThread();
  }
  

  public Log getLog()
  {
    return _log;
  }


  public int getSeverity()
  {
    return _severity;
  }
   

  public String getMessage()
  {
    return _message;
  }


  public Throwable getThrowable()
  {
    return _throwable;
  }


  public Thread getThread()
  {
    return _thread;
  }




}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.