Package com.avoka.fc.core.service
Class EventLogService
java.lang.Object
com.avoka.fc.core.service.BaseService
com.avoka.fc.core.service.EventLogService
Provides event log service including error, warning and info events.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
logErrorEvent
(String message) Log a error event with the given message.void
logErrorEvent
(String message, EmailQueue emailQueue) Log a error event with the given message and associate with the Email Queue item.void
logErrorEvent
(String message, Submission submission) Log a error event with the given message and associated submission.void
logErrorEvent
(String message, Submission submission, HttpServletRequest request) Log a error event with the given message and associated submission.void
logErrorEvent
(String message, Submission submission, HttpServletRequest request, boolean writeToLogger) Log a error event with the given message and associated submission.void
logErrorEvent
(String messageFormat, Object[] args) Log a error event with the given message.void
logErrorEvent
(String messageFormat, Object[] args, EmailQueue emailQueue) Log a error event with the given message and associate with the Email Queue item.void
logErrorEvent
(String messageFormat, Object[] args, Submission submission) Log a error event with the given message format, arguements and submission.void
logErrorEvent
(String message, HttpServletRequest request) Log a warn error with the given message and servlet request.protected void
logEvent
(String type, String message, EmailQueue emailQueue) protected void
logEvent
(String type, String message, Submission submission) protected void
logEvent
(String type, String message, Submission submission, boolean writeToLogger) protected void
logEvent
(String type, String message, HttpServletRequest request) void
logInfoEvent
(String message) Log an info event with the given message.void
logInfoEvent
(String message, EmailQueue emailQueue) Deprecated.void
logInfoEvent
(String message, Submission submission) Log an info event with the given message and associated submission.void
logInfoEvent
(String message, Submission submission, HttpServletRequest request) Log an info event with the given message and associated submission.void
logInfoEvent
(String message, Submission submission, HttpServletRequest request, boolean writeToLogger) Log an info event with the given message and associated submission.void
logInfoEvent
(String messageFormat, Object[] args) Log a info event with the given message.void
logInfoEvent
(String messageFormat, Object[] args, Submission submission) Log a info event with the given message and associate with the submission.void
logInfoEvent
(String message, HttpServletRequest request) Log a info event with the given message and servlet request.void
logSecurityEvent
(String message) Log a security event with the given message.void
logSecurityEvent
(String message, boolean writeToLogger) Log a security event with the given message.void
logSecurityEvent
(String message, Submission submission) Log a security event with the given message and for the given submission.void
logSecurityEvent
(String message, Submission submission, boolean writeToLogger) Log a security event with the given message and for the given submission.void
logSecurityEvent
(String message, Submission submission, HttpServletRequest request) Log a security event with the given message and for the given submission.void
logSecurityEvent
(String message, Submission submission, HttpServletRequest request, boolean writeToLogger) Log a security event with the given message and for the given submission.void
logSecurityEvent
(String messageFormat, Object[] args) Log a security event with the given message.void
logSecurityEvent
(String message, HttpServletRequest request) Log a security event with the given message and servlet request.void
logWarnEvent
(String message) Log a warning event with the given message.void
logWarnEvent
(String message, Submission submission) Log a warning event with the given message and associated submission.void
logWarnEvent
(String message, Submission submission, HttpServletRequest request) Log a warning event with the given message and associated submission.void
logWarnEvent
(String message, Submission submission, HttpServletRequest request, boolean writeToLogger) Log a warning event with the given message and associated submission.void
logWarnEvent
(String messageFormat, Object[] args) Log a warning event with the given message.void
logWarnEvent
(String message, HttpServletRequest request) Log a warn event with the given message and servlet request.Methods inherited from class com.avoka.fc.core.service.BaseService
getLogger
-
Constructor Details
-
EventLogService
public EventLogService()
-
-
Method Details
-
logErrorEvent
Log a error event with the given message.- Parameters:
message
- error message
-
logErrorEvent
Log a error event with the given message.- Parameters:
messageFormat
- the error message formatargs
- the message arguments
-
logErrorEvent
Log a error event with the given message format, arguements and submission.- Parameters:
messageFormat
- the error message formatargs
- the message argumentssubmission
- the form submission- Since:
- 3.6.0
-
logErrorEvent
Log a error event with the given message and associate with the Email Queue item.- Parameters:
messageFormat
- the error message formatargs
- the message argumentsemailQueue
- the email queue that the message is put on to
-
logErrorEvent
Log a error event with the given message and associate with the Email Queue item.- Parameters:
message
- the error message to logemailQueue
- the email queue that the message is put on to- Since:
- 5.0.0
-
logErrorEvent
Log a warn error with the given message and servlet request.- Parameters:
message
- the warn message to logrequest
- the servlet request to log- Since:
- 4.3.2
-
logErrorEvent
Log a error event with the given message and associated submission.- Parameters:
message
- error messagesubmission
- the associated submission
-
logErrorEvent
Log a error event with the given message and associated submission.- Parameters:
message
- error messagesubmission
- the associated submissionrequest
- the servlet request- Since:
- 4.3.2
-
logErrorEvent
public void logErrorEvent(String message, Submission submission, HttpServletRequest request, boolean writeToLogger) Log a error event with the given message and associated submission.- Parameters:
message
- error messagesubmission
- the associated submissionrequest
- the servlet requestwriteToLogger
- specify whether to write to the server log file- Since:
- 5.0.0
-
logWarnEvent
Log a warning event with the given message.- Parameters:
message
- error message
-
logWarnEvent
Log a warning event with the given message.- Parameters:
messageFormat
- the warning message formatargs
- the message arguments
-
logWarnEvent
Log a warn event with the given message and servlet request.- Parameters:
message
- the warn message to logrequest
- the servlet request to log- Since:
- 4.3.2
-
logWarnEvent
Log a warning event with the given message and associated submission.- Parameters:
message
- warning messagesubmission
- the associated submission
-
logWarnEvent
Log a warning event with the given message and associated submission.- Parameters:
message
- warning messagesubmission
- the associated submissionrequest
- the servlet request- Since:
- 4.3.2
-
logWarnEvent
public void logWarnEvent(String message, Submission submission, HttpServletRequest request, boolean writeToLogger) Log a warning event with the given message and associated submission.- Parameters:
message
- warning messagesubmission
- the associated submissionrequest
- the servlet requestwriteToLogger
- specify whether to write to the server log file- Since:
- 5.0.0
-
logInfoEvent
Log an info event with the given message.- Parameters:
message
- info message
-
logInfoEvent
Log a info event with the given message.- Parameters:
messageFormat
- the info message formatargs
- the message arguments
-
logInfoEvent
Log a info event with the given message and associate with the submission.- Parameters:
messageFormat
- the info message formatargs
- the message argumentssubmission
- the associated submission
-
logInfoEvent
Log a info event with the given message and servlet request.- Parameters:
message
- the warn message to logrequest
- the servlet request to log- Since:
- 4.3.2
-
logInfoEvent
Log an info event with the given message and associated submission.- Parameters:
message
- info messagesubmission
- the associated submission
-
logInfoEvent
Log an info event with the given message and associated submission.- Parameters:
message
- info messagesubmission
- the associated submissionrequest
- the servlet request- Since:
- 4.3.2
-
logInfoEvent
public void logInfoEvent(String message, Submission submission, HttpServletRequest request, boolean writeToLogger) Log an info event with the given message and associated submission.- Parameters:
message
- info messagesubmission
- the associated submissionrequest
- the servlet requestwriteToLogger
- specify whether to write to the server log file- Since:
- 4.3.3
-
logInfoEvent
Deprecated.Log an info event with the given message and associated email queue.- Parameters:
message
- info messageemailQueue
- the email queue that the the message is put on to
-
logSecurityEvent
Log a security event with the given message.- Parameters:
message
- error message
-
logSecurityEvent
Log a security event with the given message.- Parameters:
message
- error messagewriteToLogger
- write the message to the server log file- Since:
- 4.2.0
-
logSecurityEvent
Log a security event with the given message and servlet request.- Parameters:
message
- the warn message to logrequest
- the servlet request to log- Since:
- 4.3.2
-
logSecurityEvent
Log a security event with the given message and for the given submission.- Parameters:
message
- error messagesubmission
- the submission
-
logSecurityEvent
Log a security event with the given message and for the given submission.- Parameters:
message
- error messagesubmission
- the submissionwriteToLogger
- specify whether to write to the server log file- Since:
- 4.3.3
-
logSecurityEvent
Log a security event with the given message and for the given submission.- Parameters:
message
- error messagesubmission
- the submissionrequest
- the servlet request
-
logSecurityEvent
public void logSecurityEvent(String message, Submission submission, HttpServletRequest request, boolean writeToLogger) Log a security event with the given message and for the given submission.- Parameters:
message
- error messagesubmission
- the submissionrequest
- the servlet requestwriteToLogger
- specify whether to write to the server log file
-
logSecurityEvent
Log a security event with the given message.- Parameters:
messageFormat
- the error message formatargs
- the message arguments
-
logEvent
-
logEvent
-
logEvent
-
logEvent
-