FileDocCategorySizeDatePackage
LogEvent.javaAPI DocAzureus 3.0.3.43191Thu Jan 11 10:18:16 GMT 2007org.gudy.azureus2.core3.logging

LogEvent

public class LogEvent extends Object
Container to hold Log Event information.
note
There are no constructors without Log ID as a parameter. This is intentional, as all log events should have a log id.
author
TuxPaper

Fields Summary
public static final int
LT_INFORMATION
public static final int
LT_WARNING
public static final int
LT_ERROR
public Date
timeStamp
Date and Time this event occurred
public Object[]
relatedTo
A list of events that this entry is related to
public LogIDs
logID
Log ID, categorizing the event
public int
entryType
Type of entry, usually one of Event.LT_* constants
public String
text
Text of the event
public Throwable
err
Error related to event
Constructors Summary
public LogEvent(Object[] relatedTo, LogIDs logID, int entryType, String text)


	         
		this.logID = logID;
		this.entryType = entryType;
		this.text = text;
		this.relatedTo = relatedTo;
	
public LogEvent(LogIDs logID, int entryType, String text, Throwable e)

		this(null, logID, entryType, text, e);
	
public LogEvent(LogIDs logID, String text, Throwable e)

		this(null, logID, text, e);
	
public LogEvent(Object relatedTo, LogIDs logID, int entryType, String text)

		this(new Object[] { relatedTo }, logID, entryType, text);
	
public LogEvent(LogIDs logID, int entryType, String text)

		this(null, logID, entryType, text);
	
public LogEvent(Object[] relatedTo, LogIDs logID, String text)

		this(relatedTo, logID, LT_INFORMATION, text);
	
public LogEvent(Object relatedTo, LogIDs logID, String text)

		this(new Object[] { relatedTo }, logID, LT_INFORMATION, text);
	
public LogEvent(LogIDs logID, String text)

		this(null, logID, LT_INFORMATION, text);
	
public LogEvent(Object[] relatedTo, LogIDs logID, int entryType, String text, Throwable e)

		this(relatedTo, logID, entryType, text);
		this.err = e;
	
public LogEvent(Object[] relatedTo, LogIDs logID, String text, Throwable e)

		this(relatedTo, logID, LT_ERROR, text, e);
	
public LogEvent(Object relatedTo, LogIDs logID, String text, Throwable e)

		this(new Object[] { relatedTo }, logID, text, e);
	
Methods Summary