Class Logger
java.lang.Object
com.netscape.cms.logging.Logger
- All Implemented Interfaces:
ILogger
- Direct Known Subclasses:
SignedAuditLogger
-
Field Summary
FieldsModifier 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
ConstructorsConstructorDescriptionLogger()Logger(LogFactory factory, LogCategory category, LogSource source) Logger(LogFactory factory, LogCategory category, LogSource source, int level) -
Method Summary
Modifier and TypeMethodDescriptioncreate(LogCategory evtClass, LogSource source, int level, String msg, Object[] params, boolean multiline) Creates generic log event.static Loggerget default single global loggerstatic 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[] params, boolean multiline) 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.voidvoidstatic voidregister(LogCategory evtClass, LogFactory f) Registers log factory.voidNotifies logger to reuse the event.voidupdate(LogEvent event, LogSource source, int level, String message, Object[] params, boolean multiline) Updates a log event.
-
Field Details
-
mLogger
-
mLogQueue
-
mFactories
-
-
Constructor Details
-
Logger
public Logger() -
Logger
-
Logger
-
-
Method Details
-
getLogger
get default single global logger -
getLogger
-
getLogQueue
Retrieves the associated log queue.- Specified by:
getLogQueuein interfaceILogger
-
register
Registers log factory.- Parameters:
evtClass- the event class name: ILogger.EV_SYSTEM or ILogger.EV_AUDITf- the event factory name
-
log
-
log
-
log
Logs an event using default log level. -
log
-
log
Logs an event to the log queue. -
log
Logs an event to the log queue. -
log
-
log
Logs an event to the log queue. -
log
Logs an event using default log level. -
log
-
log
Logs an event to the log queue.- Specified by:
login interfaceILogger- Parameters:
evtClass- What kind of event it is: EV_AUDIT or EV_SYSTEM.source- the source of the log eventlevel- the level of the log eventmsg- the one line detail message to be loggedmultiline- true if the message has more than one line, otherwise false
-
log
public void log(LogCategory evtClass, LogSource source, int level, String msg, Object param, boolean multiline) Logs an event to the log queue.- Specified by:
login interfaceILogger- Parameters:
evtClass- What kind of event it is: EV_AUDIT or EV_SYSTEM.source- the source of the log eventlevel- The level of the log event.msg- the one line detail message to be loggedparam- the parameter in the detail messagemultiline- true if the message has more than one line, otherwise false
-
log
-
log
public void log(LogCategory evtClass, LogSource source, int level, String msg, Object[] params, boolean multiline) Logs an event to the log queue.- Parameters:
evtClass- What kind of event it is: EV_AUDIT or EV_SYSTEM.source- the source of the log eventlevel- the level of the log eventmsg- 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
-
create
-
create
-
update
public void update(LogEvent event, LogSource source, int level, String message, Object[] params, boolean multiline) Updates a log event.- 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.
-
release
Notifies logger to reuse the event. This framework opens up possibility to reuse event.- Parameters:
event- a log event
-