Package com.netscape.cms.logging
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.
- Author:
- thomask, mzhao
-
Field Summary
FieldsFields inherited from class com.netscape.cms.logging.Logger
logQueue, mFactories
Fields inherited from interface com.netscape.certsrv.logging.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, UNIDENTIFIED
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
log
(LogCategory category, LogSource source, int level, String message, Object[] params, boolean multiline) Logs an event to the log queue.void
void
update
(LogEvent event, LogSource source, int level, String message, Object[] params, boolean multiline) Updates a log event.
-
Field Details
-
logger
public static org.slf4j.Logger logger
-
-
Constructor Details
-
SignedAuditLogger
public SignedAuditLogger()
-
-
Method Details
-
log
public void log(LogCategory category, LogSource source, int level, String message, Object[] params, boolean multiline) Description copied from class:Logger
Logs an event to the log queue.- Overrides:
log
in 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:Logger
Updates a log event.- Overrides:
update
in 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.
-