Package com.netscape.certsrv.logging
Interface ILogger
-
- All Known Implementing Classes:
Logger,SignedAuditLogger
public interface ILoggerAn interface represents a logger for certificate server. This object is used to issue log messages for the various types of logging event types. A log message results in a ILogEvent being created. This event is then placed on a ILogQueue to be ultimately written to the destination log file. This object also maintains a collection of ILogFactory objects which are used to create the supported types of ILogEvents. CMS comes out of the box with three event types: "signedAudit", "system", and "audit".- Version:
- $Revision$, $Date$
-
-
Field Summary
Fields Modifier and Type Field Description static LogCategoryEV_AUDITlog class: audit event.static LogCategoryEV_SIGNED_AUDITlog class: SignedAudit event.static LogCategoryEV_SYSTEMlog class: system event.static java.lang.StringFAILUREstatic booleanL_MULTILINEindicate the log message has more than one linestatic booleanL_SINGLELINEindicate the log message has one linestatic intLL_ALLlog level: used by servlet to retrieve all level logsstatic java.lang.StringLL_ALL_STRINGstatic intLL_CATASTRPHElog level: indicate this log entry is catastrphe infostatic java.lang.StringLL_CATASTRPHE_STRINGstatic intLL_DEBUGDebug level is depreciated since CMS6.1.static java.lang.StringLL_DEBUG_STRINGstatic intLL_FAILURElog level: indicate this log entry is fail/error infostatic java.lang.StringLL_FAILURE_STRINGstatic intLL_INFOlog level: indicate this log entry is for info notestatic java.lang.StringLL_INFO_STRINGstatic intLL_MISCONFlog level: indicate this log entry is about misconfigurationstatic java.lang.StringLL_MISCONF_STRINGstatic intLL_SECURITYlog level: indicate this log entry is security infostatic java.lang.StringLL_SECURITY_STRINGstatic intLL_WARNlog level: indicate this log entry is warning infostatic java.lang.StringLL_WARN_STRINGstatic java.lang.StringNONROLEUSERA constant string value used to denote a single "non-role" identity in signed audit log messagesstatic intNT_ERRORNT event type: correspont to log level LL_FAILURE and abovestatic intNT_INFONT event type: correspond to log level LL_DEBUG or LL_INFOstatic intNT_WARNNT event type: correspond to log level LL_WARNINGstatic java.lang.StringPROP_AUDITstatic java.lang.StringPROP_SIGNED_AUDITstatic java.lang.StringPROP_SYSTEMstatic LogSourceS_ACLSlog source: identify the log entry is from acl subsystemstatic LogSourceS_ADMINlog source: identify the log entry is from admin subsystemstatic LogSourceS_ALLlog source: used by servlet to retrieve all logsstatic LogSourceS_AUTHENTICATIONlog source: identify the log entry is from authentication subsystemstatic LogSourceS_AUTHORIZATIONlog source: identify the log entry is from authorization subsystemstatic LogSourceS_CAlog source: identify the log entry is from CAstatic LogSourceS_DBlog source: identify the log entry is from database subsystemstatic LogSourceS_HTTPlog source: identify the log entry is from http subsystemstatic LogSourceS_KRAlog source: identify the log entry is from KRAstatic LogSourceS_LDAPlog source: identify the log entry is from ldap subsystemstatic LogSourceS_OCSPstatic LogSourceS_OTHERlog source: identify the log entry is from other subsystem eg.static LogSourceS_RAlog source: identify the log entry is from RAstatic LogSourceS_REQQUEUElog source: identify the log entry is from request queue subsystemstatic LogSourceS_SIGNED_AUDITlog source: identify the log entry is from signed auditstatic LogSourceS_TKSlog source: identify the log entry is from CrossCertPair subsystemstatic LogSourceS_TPSstatic LogSourceS_USRGRPlog source: identify the log entry is from usergrp subsystemstatic LogSourceS_XCERTlog source: identify the log entry is from CrossCertPair subsystemstatic java.lang.StringSIGNED_AUDIT_ACCEPTANCEConstant string values associated with the type of certificate processing stored in the "InfoName" field in certain signed audit log messagesstatic java.lang.StringSIGNED_AUDIT_CANCELLATIONstatic java.lang.StringSIGNED_AUDIT_EMPTY_VALUEA constant string value used to denote an "empty", or "null", data value in signed audit log messagesstatic java.lang.StringSIGNED_AUDIT_NON_APPLICABLEA constant string value used to denote a "non-applicable" data value in signed audit log messagesstatic java.lang.StringSIGNED_AUDIT_REJECTIONstatic java.lang.StringSUCCESS"Outcome" for events logged in signed audit log messagesstatic java.lang.StringSYSTEM_UID"SubjectID" for system-initiated events logged in signed audit log messagesstatic java.lang.StringUNIDENTIFIEDA constant string value used to denote a single "unknown" identity in signed audit log messages
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ILogEventcreate(LogCategory evtClass, LogSource source, int level, java.lang.String msg, java.lang.Object[] params, boolean multiline)ILogQueuegetLogQueue()Retrieves the associated log queue.voidlog(LogCategory evtClass, LogSource source, int level, java.lang.String msg)Logs an event to the log queue.voidlog(LogCategory evtClass, LogSource source, int level, java.lang.String msg, boolean multiline)Logs an event to the log queue.voidlog(LogCategory evtClass, LogSource source, int level, java.lang.String msg, java.lang.Object param)Logs an event to the log queue.voidlog(LogCategory evtClass, LogSource source, int level, java.lang.String msg, java.lang.Object[] params)Logs an event to the log queue.voidlog(LogCategory evtClass, LogSource source, int level, java.lang.String msg, java.lang.Object param, boolean multiline)Logs an event to the log queue.voidlog(LogCategory evtClass, LogSource source, java.lang.String msg)Logs an event to the log queue.voidlog(LogCategory evtClass, LogSource source, java.lang.String msg, boolean multiline)Logs an event to the log queue.
-
-
-
Field Detail
-
EV_AUDIT
static final LogCategory EV_AUDIT
log class: audit event.
-
PROP_AUDIT
static final java.lang.String PROP_AUDIT
- See Also:
- Constant Field Values
-
EV_SYSTEM
static final LogCategory EV_SYSTEM
log class: system event. System event with log level >= LL_FAILURE will also be logged in error log
-
PROP_SYSTEM
static final java.lang.String PROP_SYSTEM
- See Also:
- Constant Field Values
-
EV_SIGNED_AUDIT
static final LogCategory EV_SIGNED_AUDIT
log class: SignedAudit event.
-
PROP_SIGNED_AUDIT
static final java.lang.String PROP_SIGNED_AUDIT
- See Also:
- Constant Field Values
-
S_ALL
static final LogSource S_ALL
log source: used by servlet to retrieve all logs
-
S_KRA
static final LogSource S_KRA
log source: identify the log entry is from KRA
-
S_RA
static final LogSource S_RA
log source: identify the log entry is from RA
-
S_CA
static final LogSource S_CA
log source: identify the log entry is from CA
-
S_HTTP
static final LogSource S_HTTP
log source: identify the log entry is from http subsystem
-
S_DB
static final LogSource S_DB
log source: identify the log entry is from database subsystem
-
S_AUTHENTICATION
static final LogSource S_AUTHENTICATION
log source: identify the log entry is from authentication subsystem
-
S_ADMIN
static final LogSource S_ADMIN
log source: identify the log entry is from admin subsystem
-
S_LDAP
static final LogSource S_LDAP
log source: identify the log entry is from ldap subsystem
-
S_REQQUEUE
static final LogSource S_REQQUEUE
log source: identify the log entry is from request queue subsystem
-
S_ACLS
static final LogSource S_ACLS
log source: identify the log entry is from acl subsystem
-
S_USRGRP
static final LogSource S_USRGRP
log source: identify the log entry is from usergrp subsystem
-
S_OCSP
static final LogSource S_OCSP
-
S_AUTHORIZATION
static final LogSource S_AUTHORIZATION
log source: identify the log entry is from authorization subsystem
-
S_SIGNED_AUDIT
static final LogSource S_SIGNED_AUDIT
log source: identify the log entry is from signed audit
-
S_XCERT
static final LogSource S_XCERT
log source: identify the log entry is from CrossCertPair subsystem
-
S_TKS
static final LogSource S_TKS
log source: identify the log entry is from CrossCertPair subsystem
-
S_TPS
static final LogSource S_TPS
-
S_OTHER
static final LogSource S_OTHER
log source: identify the log entry is from other subsystem eg. policy, security, connector,registration
-
LL_ALL
static final int LL_ALL
log level: used by servlet to retrieve all level logs- See Also:
- Constant Field Values
-
LL_ALL_STRING
static final java.lang.String LL_ALL_STRING
- See Also:
- Constant Field Values
-
LL_DEBUG
static final int LL_DEBUG
Debug level is depreciated since CMS6.1. Please use CMS.debug() to output messages to debugging file.- See Also:
- Constant Field Values
-
LL_DEBUG_STRING
static final java.lang.String LL_DEBUG_STRING
- See Also:
- Constant Field Values
-
LL_INFO
static final int LL_INFO
log level: indicate this log entry is for info note- See Also:
- Constant Field Values
-
LL_INFO_STRING
static final java.lang.String LL_INFO_STRING
- See Also:
- Constant Field Values
-
LL_WARN
static final int LL_WARN
log level: indicate this log entry is warning info- See Also:
- Constant Field Values
-
LL_WARN_STRING
static final java.lang.String LL_WARN_STRING
- See Also:
- Constant Field Values
-
LL_FAILURE
static final int LL_FAILURE
log level: indicate this log entry is fail/error info- See Also:
- Constant Field Values
-
LL_FAILURE_STRING
static final java.lang.String LL_FAILURE_STRING
- See Also:
- Constant Field Values
-
LL_MISCONF
static final int LL_MISCONF
log level: indicate this log entry is about misconfiguration- See Also:
- Constant Field Values
-
LL_MISCONF_STRING
static final java.lang.String LL_MISCONF_STRING
- See Also:
- Constant Field Values
-
LL_CATASTRPHE
static final int LL_CATASTRPHE
log level: indicate this log entry is catastrphe info- See Also:
- Constant Field Values
-
LL_CATASTRPHE_STRING
static final java.lang.String LL_CATASTRPHE_STRING
- See Also:
- Constant Field Values
-
LL_SECURITY
static final int LL_SECURITY
log level: indicate this log entry is security info- See Also:
- Constant Field Values
-
LL_SECURITY_STRING
static final java.lang.String LL_SECURITY_STRING
- See Also:
- Constant Field Values
-
SYSTEM_UID
static final java.lang.String SYSTEM_UID
"SubjectID" for system-initiated events logged in signed audit log messages- See Also:
- Constant Field Values
-
UNIDENTIFIED
static final java.lang.String UNIDENTIFIED
A constant string value used to denote a single "unknown" identity in signed audit log messages- See Also:
- Constant Field Values
-
NONROLEUSER
static final java.lang.String NONROLEUSER
A constant string value used to denote a single "non-role" identity in signed audit log messages- See Also:
- Constant Field Values
-
SUCCESS
static final java.lang.String SUCCESS
"Outcome" for events logged in signed audit log messages- See Also:
- Constant Field Values
-
FAILURE
static final java.lang.String FAILURE
- See Also:
- Constant Field Values
-
SIGNED_AUDIT_NON_APPLICABLE
static final java.lang.String SIGNED_AUDIT_NON_APPLICABLE
A constant string value used to denote a "non-applicable" data value in signed audit log messages- See Also:
- Constant Field Values
-
SIGNED_AUDIT_EMPTY_VALUE
static final java.lang.String SIGNED_AUDIT_EMPTY_VALUE
A constant string value used to denote an "empty", or "null", data value in signed audit log messages- See Also:
- Constant Field Values
-
SIGNED_AUDIT_ACCEPTANCE
static final java.lang.String SIGNED_AUDIT_ACCEPTANCE
Constant string values associated with the type of certificate processing stored in the "InfoName" field in certain signed audit log messages- See Also:
- Constant Field Values
-
SIGNED_AUDIT_CANCELLATION
static final java.lang.String SIGNED_AUDIT_CANCELLATION
- See Also:
- Constant Field Values
-
SIGNED_AUDIT_REJECTION
static final java.lang.String SIGNED_AUDIT_REJECTION
- See Also:
- Constant Field Values
-
NT_INFO
static final int NT_INFO
NT event type: correspond to log level LL_DEBUG or LL_INFO- See Also:
- Constant Field Values
-
NT_WARN
static final int NT_WARN
NT event type: correspond to log level LL_WARNING- See Also:
- Constant Field Values
-
NT_ERROR
static final int NT_ERROR
NT event type: correspont to log level LL_FAILURE and above- See Also:
- Constant Field Values
-
L_MULTILINE
static final boolean L_MULTILINE
indicate the log message has more than one line- See Also:
- Constant Field Values
-
L_SINGLELINE
static final boolean L_SINGLELINE
indicate the log message has one line- See Also:
- Constant Field Values
-
-
Method Detail
-
log
void log(LogCategory evtClass, LogSource source, java.lang.String msg)
Logs an event to the log queue.- Parameters:
evtClass- What kind of event it is: EV_AUDIT or EV_SYSTEM or EV_SIGNED_AUDIT.source- The source of the log event.msg- The detail message to be logged.
-
log
void log(LogCategory evtClass, LogSource source, int level, java.lang.String msg)
Logs an event to the log queue.- Parameters:
evtClass- What kind of event it is: EV_AUDIT or EV_SYSTEM or EV_SIGNED_AUDIT.source- The source of the log event.level- The level of the log event.msg- The detail message to be logged.
-
log
void log(LogCategory evtClass, LogSource source, int level, java.lang.String msg, java.lang.Object param)
Logs an event to the log queue.- Parameters:
evtClass- What kind of event it is: EV_AUDIT or EV_SYSTEM or EV_SIGNED_AUDIT.source- The source of the log event.level- The level of the log event.msg- The detail message to be logged.param- The parameter in the detail message.
-
log
void log(LogCategory evtClass, LogSource source, int level, java.lang.String msg, java.lang.Object[] params)
Logs an event to the log queue.- Parameters:
evtClass- What kind of event it is: EV_AUDIT or EV_SYSTEM or EV_SIGNED_AUDIT.source- The source of the log event.level- The level of the log event.msg- The detail message to be logged.params- The parameters in the detail message.
-
log
void log(LogCategory evtClass, LogSource source, java.lang.String msg, boolean multiline)
Logs an event to the log queue.- Parameters:
evtClass- What kind of event it is: EV_AUDIT or EV_SYSTEM or EV_SIGNED_AUDIT.source- The source of the log event.msg- The detail message to be logged.multiline- true If the message has more than one line, otherwise false.
-
log
void log(LogCategory evtClass, LogSource source, int level, java.lang.String msg, boolean multiline)
Logs an event to the log queue.- Parameters:
evtClass- What kind of event it is: EV_AUDIT or EV_SYSTEM or EV_SIGNED_AUDIT.source- The source of the log event.level- The level of the log event.msg- The detail message to be logged.multiline- True if the message has more than one line, otherwise false.
-
log
void log(LogCategory evtClass, LogSource source, int level, java.lang.String msg, java.lang.Object param, boolean multiline)
Logs an event to the log queue.- Parameters:
evtClass- What kind of event it is: EV_AUDIT or EV_SYSTEM or EV_SIGNED_AUDIT.source- The source of the log event.level- The level of the log event.msg- The detail message to be logged.param- The parameter in the detail message.multiline- True if the message has more than one line, otherwise false.
-
create
ILogEvent create(LogCategory evtClass, LogSource source, int level, java.lang.String msg, java.lang.Object[] params, boolean multiline)
-
getLogQueue
ILogQueue getLogQueue()
Retrieves the associated log queue. The log queue is where issued log events are collected for later processing.
-
-