net.directj.jlogger
Class LogRecord

java.lang.Object
  |
  +--net.directj.jlogger.LogRecord

class LogRecord
extends java.lang.Object

A very simple class that store logging information.

Version:
0.1.9
Author:
CARTAPANIS Alexandre <earendil@jprolog.net>

Field Summary
private  java.lang.String logMessage
          The logging information.
private  java.lang.String logName
          The logger name.
private  java.lang.String logTime
          The logging time.
private  int logType
          The logging type of the information.
 
Constructor Summary
LogRecord(int _type, java.lang.String _msg, java.lang.String _name, java.lang.String _time)
          Creates a new LogRecord, with specified info and level.
 
Method Summary
 java.lang.String getLogMessage()
          Returns the logging information.
 java.lang.String getLogName()
          Returns the name of the logger that emit the info, as a string.
 java.lang.String getLogTime()
          Returns the logging time, as a string.
 int getLogType()
          Returns the logging information type, as an integer.
 java.lang.String getLogTypeAsString()
          Returns the logging type, as a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logType

private int logType
The logging type of the information.


logMessage

private java.lang.String logMessage
The logging information.


logTime

private java.lang.String logTime
The logging time.


logName

private java.lang.String logName
The logger name.

Constructor Detail

LogRecord

public LogRecord(int _type,
                 java.lang.String _msg,
                 java.lang.String _name,
                 java.lang.String _time)
Creates a new LogRecord, with specified info and level.

Parameters:
_type - The logging information level.
_msg - The logging information.
_name - The name of the logger that emit the info.
_time - The time since the logger us running for.
Method Detail

getLogMessage

public java.lang.String getLogMessage()
Returns the logging information.

Returns:
String - The logging information.

getLogType

public int getLogType()
Returns the logging information type, as an integer.

Returns:
int - The logging information type.

getLogName

public java.lang.String getLogName()
Returns the name of the logger that emit the info, as a string.

Returns:
String - The logger name.

getLogTime

public java.lang.String getLogTime()
Returns the logging time, as a string.

Returns:
String - The logging information publish time.

getLogTypeAsString

public java.lang.String getLogTypeAsString()
Returns the logging type, as a String.

Returns:
String - The logging type, as a String.


Copyright 2002 CARTAPANIS Alexandre
This page was last updated on May 10 2003