Class SignedAuditLogger
java.lang.Object
com.netscape.cms.logging.Logger
com.netscape.cms.logging.SignedAuditLogger
- All Implemented Interfaces:
ILogger
A class represents certificate server logger
implementation.
- Version:
- $Revision$, $Date$
- Author:
- thomask, mzhao
-
Field Summary
FieldsFields inherited from class Logger
mFactories, mLogger, mLogQueueModifier and TypeFieldDescriptionprotected static Hashtable<LogCategory, LogFactory> protected static Loggerprotected ILogQueueFields inherited from interface ILogger
EV_AUDIT, EV_SIGNED_AUDIT, FAILURE, L_MULTILINE, L_SINGLELINE, LL_ALL, LL_ALL_STRING, LL_CATASTRPHE, LL_CATASTRPHE_STRING, LL_DEBUG, LL_DEBUG_STRING, LL_FAILURE, LL_FAILURE_STRING, LL_INFO, LL_INFO_STRING, LL_MISCONF, LL_MISCONF_STRING, LL_SECURITY, LL_SECURITY_STRING, LL_WARN, LL_WARN_STRING, NONROLEUSER, NT_ERROR, NT_INFO, NT_WARN, PROP_AUDIT, PROP_SIGNED_AUDIT, PROP_SYSTEM, S_ACLS, S_ADMIN, S_ALL, S_AUTHENTICATION, S_AUTHORIZATION, S_CA, S_DB, S_HTTP, S_KRA, S_LDAP, S_OCSP, S_OTHER, S_RA, S_REQQUEUE, S_SIGNED_AUDIT, S_TKS, S_TPS, S_USRGRP, S_XCERT, SIGNED_AUDIT_ACCEPTANCE, SIGNED_AUDIT_CANCELLATION, SIGNED_AUDIT_EMPTY_VALUE, SIGNED_AUDIT_NON_APPLICABLE, SIGNED_AUDIT_REJECTION, SUCCESS, SYSTEM_UID, UNIDENTIFIEDModifier and TypeFieldDescriptionstatic final LogCategorylog class: audit event.static final LogCategorylog class: SignedAudit event.static final Stringstatic final booleanindicate the log message has more than one linestatic final booleanindicate the log message has one linestatic final intlog level: used by servlet to retrieve all level logsstatic final Stringstatic final intlog level: indicate this log entry is catastrphe infostatic final Stringstatic final intDebug level is depreciated since CMS6.1.static final Stringstatic final intlog level: indicate this log entry is fail/error infostatic final Stringstatic final intlog level: indicate this log entry is for info notestatic final Stringstatic final intlog level: indicate this log entry is about misconfigurationstatic final Stringstatic final intlog level: indicate this log entry is security infostatic final Stringstatic final intlog level: indicate this log entry is warning infostatic final Stringstatic final StringA constant string value used to denote a single "non-role" identity in signed audit log messagesstatic final intNT event type: correspont to log level LL_FAILURE and abovestatic final intNT event type: correspond to log level LL_DEBUG or LL_INFOstatic final intNT event type: correspond to log level LL_WARNINGstatic final Stringstatic final Stringstatic final Stringlog class: system event.static final LogSourcelog source: identify the log entry is from acl subsystemstatic final LogSourcelog source: identify the log entry is from admin subsystemstatic final LogSourcelog source: used by servlet to retrieve all logsstatic final LogSourcelog source: identify the log entry is from authentication subsystemstatic final LogSourcelog source: identify the log entry is from authorization subsystemstatic final LogSourcelog source: identify the log entry is from CAstatic final LogSourcelog source: identify the log entry is from database subsystemstatic final LogSourcelog source: identify the log entry is from http subsystemstatic final LogSourcelog source: identify the log entry is from KRAstatic final LogSourcelog source: identify the log entry is from ldap subsystemstatic final LogSourcestatic final LogSourcelog source: identify the log entry is from other subsystem eg.static final LogSourcelog source: identify the log entry is from RAstatic final LogSourcelog source: identify the log entry is from request queue subsystemstatic final LogSourcelog source: identify the log entry is from signed auditstatic final LogSourcelog source: identify the log entry is from CrossCertPair subsystemstatic final LogSourcestatic final LogSourcelog source: identify the log entry is from usergrp subsystemstatic final LogSourcelog source: identify the log entry is from CrossCertPair subsystemstatic final StringConstant string values associated with the type of certificate processing stored in the "InfoName" field in certain signed audit log messagesstatic final Stringstatic final StringA constant string value used to denote an "empty", or "null", data value in signed audit log messagesstatic final StringA constant string value used to denote a "non-applicable" data value in signed audit log messagesstatic final Stringstatic final String"Outcome" for events logged in signed audit log messagesstatic final String"SubjectID" for system-initiated events logged in signed audit log messagesstatic final StringA constant string value used to denote a single "unknown" identity in signed audit log messages -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SignedAuditLoggervoidlog(LogCategory category, LogSource source, int level, String message, Object[] params, boolean multiline) Logs an event to the log queue.voidvoidupdate(LogEvent event, LogSource source, int level, String message, Object[] params, boolean multiline) Updates a log event.Methods inherited from class Logger
create, create, getLogger, getLogQueue, log, log, log, log, log, log, log, log, log, log, log, log, register, releaseModifier and TypeMethodDescriptioncreate(LogCategory evtClass, LogSource source, int level, String msg, Object[] params, boolean multiline) Creates generic log event.static LoggergetLogger(LogCategory category, LogSource source) Retrieves the associated log queue.voidvoidvoidvoidvoidlog(LogCategory evtClass, LogSource source, int level, String msg) Logs an event to the log queue.voidlog(LogCategory evtClass, LogSource source, int level, String msg, boolean multiline) Logs an event to the log queue.voidlog(LogCategory evtClass, LogSource source, int level, String msg, Object param) Logs an event to the log queue.voidlog(LogCategory evtClass, LogSource source, int level, String msg, Object[] params) Logs an event to the log queue.voidlog(LogCategory evtClass, LogSource source, int level, String msg, Object param, boolean multiline) Logs an event to the log queue.voidlog(LogCategory evtClass, LogSource source, String msg) Logs an event using default log level.voidlog(LogCategory evtClass, LogSource source, String msg, boolean multiline) Logs an event using default log level.voidstatic voidregister(LogCategory evtClass, LogFactory f) Registers log factory.voidNotifies logger to reuse the event.
-
Field Details
-
logger
public static org.slf4j.Logger logger
-
-
Constructor Details
-
SignedAuditLogger
public SignedAuditLogger()
-
-
Method Details
-
getLogger
-
log
public void log(LogCategory category, LogSource source, int level, String message, Object[] params, boolean multiline) Description copied from class:LoggerLogs an event to the log queue.- Overrides:
login classLogger- Parameters:
category- What kind of event it is: EV_AUDIT or EV_SYSTEM.source- the source of the log eventlevel- the level of the log eventmessage- the one line detail message to be loggedparams- the parameters in the detail messagemultiline- true if the message has more than one line, otherwise false
-
log
-
update
public void update(LogEvent event, LogSource source, int level, String message, Object[] params, boolean multiline) Description copied from class:LoggerUpdates a log event.- Overrides:
updatein classLogger- Parameters:
event- The event to be updated.source- The subsystem who creates the log event.level- The severity of the log event.message- The detail message of the log.params- The parameters in the detail log message.multiline- The log message has more than one line or not.
-