public class AuditLog extends MessageFormatter
| Modifier and Type | Class and Description |
|---|---|
static class |
AuditLog.AuditLogActivity
Count up the number of records of each severity logged by a component.
|
| Modifier and Type | Field and Description |
|---|---|
protected AuditLog.AuditLogActivity |
auditLogActivity |
protected List<AuditLog> |
childAuditLogs |
| Constructor and Description |
|---|
AuditLog(AuditLogDestination destination,
ComponentDescription reportingComponent)
Constructor used to create the root audit log for a process/server
|
AuditLog(AuditLogDestination destination,
int componentId,
String componentName,
String componentDescription,
String componentWikiURL)
Typical constructor: each component using the audit log will create their own AuditLog instance and
will push log records to it.
|
| Modifier and Type | Method and Description |
|---|---|
AuditLog |
createNewAuditLog(ComponentDescription childComponent)
Constructor used to create the root audit log for OMRS
|
AuditLog |
createNewAuditLog(int componentId,
String componentName,
String componentDescription,
String componentWikiURL)
Clone request is used to create an audit log for a component outside of OMRS.
|
Map<String,String> |
getOriginatorProperties()
Return the map of properties used to describe the originator process/server.
|
AuditLogReport |
getReport()
Return a report describing the audit log's properties and activity.
|
void |
logException(String actionDescription,
AuditLogMessageDefinition messageDefinition,
List<String> additionalInformation,
Throwable caughtException)
Log an audit log message associated with a caught exception.
|
void |
logException(String actionDescription,
AuditLogMessageDefinition messageDefinition,
String additionalInformation,
Throwable caughtException)
Log an audit log message associated with a caught exception.
|
void |
logException(String actionDescription,
AuditLogMessageDefinition messageDefinition,
Throwable caughtException)
Log an audit log message associated with a caught exception.
|
void |
logMessage(String actionDescription,
AuditLogMessageDefinition messageDefinition)
Log an audit log message.
|
void |
logMessage(String actionDescription,
AuditLogMessageDefinition messageDefinition,
List<String> additionalInformation)
Log an audit log message.
|
void |
logMessage(String actionDescription,
AuditLogMessageDefinition messageDefinition,
String additionalInformation)
Log an audit log message.
|
getFormattedMessageprotected AuditLog.AuditLogActivity auditLogActivity
public AuditLog(AuditLogDestination destination, int componentId, String componentName, String componentDescription, String componentWikiURL)
destination - destination for the log recordscomponentId - numerical identifier for the component.componentName - display name for the component.componentDescription - description of the component.componentWikiURL - link to more information.public AuditLog(AuditLogDestination destination, ComponentDescription reportingComponent)
destination - new logging destinationreportingComponent - information about the component that will use this instance of the audit log.public AuditLog createNewAuditLog(int componentId, String componentName, String componentDescription, String componentWikiURL)
componentId - numerical identifier for the component.componentName - display name for the component.componentDescription - description of the component.componentWikiURL - link to more information.public AuditLog createNewAuditLog(ComponentDescription childComponent)
childComponent - information about the component that will use this instance of the audit log.public void logMessage(String actionDescription, AuditLogMessageDefinition messageDefinition)
actionDescription - short description of the activitymessageDefinition - message content to logpublic void logMessage(String actionDescription, AuditLogMessageDefinition messageDefinition, String additionalInformation)
actionDescription - short description of the activitymessageDefinition - message content to logadditionalInformation - supporting informationpublic void logMessage(String actionDescription, AuditLogMessageDefinition messageDefinition, List<String> additionalInformation)
actionDescription - short description of the activitymessageDefinition - message content to logadditionalInformation - supporting informationpublic void logException(String actionDescription, AuditLogMessageDefinition messageDefinition, Throwable caughtException)
actionDescription - short description of the activitymessageDefinition - message content to logcaughtException - the exception associated with the messagepublic void logException(String actionDescription, AuditLogMessageDefinition messageDefinition, String additionalInformation, Throwable caughtException)
actionDescription - short description of the activitymessageDefinition - message content to logadditionalInformation - supporting informationcaughtException - the exception associated with the messagepublic void logException(String actionDescription, AuditLogMessageDefinition messageDefinition, List<String> additionalInformation, Throwable caughtException)
actionDescription - short description of the activitymessageDefinition - message content to logadditionalInformation - supporting informationcaughtException - the exception associated with the messagepublic Map<String,String> getOriginatorProperties()
public AuditLogReport getReport()
Copyright © 2018–2020 ODPi. All rights reserved.