com.iplanet.log
Class LogRecord

java.lang.Object
  |
  +--com.iplanet.log.LogRecord

Deprecated. This class has been deprecated. Please use com.sun.identity.log.LogRecord.

public class LogRecord
extends java.lang.Object

Sun ONE Identity Server LogRecord provides a means to represent the information that needs to logged. It represents a single piece of log information that an application can log. This LogRecord is retained for compatibility.


Field Summary
static int ACCESS
          Deprecated. Defines the type of LogRecord to be of type ACCESS.
static int ERROR
          Deprecated. Defines the type of LogRecord to be of type ERROR.
 
Constructor Summary
LogRecord(java.lang.String type, java.lang.String msg)
          Deprecated. Constructs a Sun ONE Identity Server 5.1 LogRecord with the Type and Message.
LogRecord(java.lang.String type, java.lang.String msg, int logType)
          Deprecated. Constructs a Sun ONE Identity Server 5.1 LogRecord with the Type, Message and LogType.
 
Method Summary
 int getLogType()
          Deprecated. The log type either access or error
 java.lang.String getRecMsg()
          Deprecated. The log data or value of a single log record.
 java.lang.String getRecType()
          Deprecated. The log type or key of a single log record.
 void setLogType(int logType)
          Deprecated. sets the log type to either ACCESS or ERROR
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACCESS

public static final int ACCESS
Deprecated. 
Defines the type of LogRecord to be of type ACCESS.

ERROR

public static final int ERROR
Deprecated. 
Defines the type of LogRecord to be of type ERROR.
Constructor Detail

LogRecord

public LogRecord(java.lang.String type,
                 java.lang.String msg)
Deprecated. 
Constructs a Sun ONE Identity Server 5.1 LogRecord with the Type and Message. Type represents the application type(Auth, Session, Console etc.). This field is excluded from the set of fields logged in Sun ONE Identity Server 6.0.
Parameters:
type - The log type or key.
msg - The log message or value.

LogRecord

public LogRecord(java.lang.String type,
                 java.lang.String msg,
                 int logType)
Deprecated. 
Constructs a Sun ONE Identity Server 5.1 LogRecord with the Type, Message and LogType. Type represents the application type(Auth, Session, Console etc.). This field is excluded from the set of fields logged in Sun ONE Identity Server 6.0. The field LogType represents whether the LogRecord is of type ACCESS or ERROR.
Parameters:
type - The log type (Example: Auth, Session and Console). No longer used as a field in Sun ONE Identity Server 6.0.
msg - The data to be logged.
logType - ACCESS or ERROR
Method Detail

getRecType

public java.lang.String getRecType()
Deprecated. 
The log type or key of a single log record.
Returns:
The log type or key.

getRecMsg

public java.lang.String getRecMsg()
Deprecated. 
The log data or value of a single log record.
Returns:
The log data or value.

getLogType

public int getLogType()
Deprecated. 
The log type either access or error
Returns:
The log type(access or error)

setLogType

public void setLogType(int logType)
Deprecated. 
sets the log type to either ACCESS or ERROR
Parameters:
logType - ACCESS or ERROR