Package com.avoka.fc.core.service
Class EventLogService
- java.lang.Object
-
- com.avoka.fc.core.service.BaseService
-
- com.avoka.fc.core.service.EventLogService
-
public class EventLogService extends BaseService
Provides event log service including error, warning and info events.
-
-
Constructor Summary
Constructors Constructor Description EventLogService()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
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
-
-
-
-
Method Detail
-
logErrorEvent
public void logErrorEvent(String message)
Log a error event with the given message.- Parameters:
message
- error message
-
logErrorEvent
public void logErrorEvent(String messageFormat, Object[] args)
Log a error event with the given message.- Parameters:
messageFormat
- the error message formatargs
- the message arguments
-
logErrorEvent
public void logErrorEvent(String messageFormat, Object[] args, Submission submission)
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
public void logErrorEvent(String messageFormat, Object[] args, EmailQueue emailQueue)
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
public void logErrorEvent(String message, EmailQueue emailQueue)
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
public void logErrorEvent(String message, HttpServletRequest request)
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
public void logErrorEvent(String message, Submission submission)
Log a error event with the given message and associated submission.- Parameters:
message
- error messagesubmission
- the associated submission
-
logErrorEvent
public void logErrorEvent(String message, Submission submission, HttpServletRequest request)
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
public void logWarnEvent(String message)
Log a warning event with the given message.- Parameters:
message
- error message
-
logWarnEvent
public void logWarnEvent(String messageFormat, Object[] args)
Log a warning event with the given message.- Parameters:
messageFormat
- the warning message formatargs
- the message arguments
-
logWarnEvent
public void logWarnEvent(String message, HttpServletRequest request)
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
public void logWarnEvent(String message, Submission submission)
Log a warning event with the given message and associated submission.- Parameters:
message
- warning messagesubmission
- the associated submission
-
logWarnEvent
public void logWarnEvent(String message, Submission submission, HttpServletRequest request)
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
public void logInfoEvent(String message)
Log an info event with the given message.- Parameters:
message
- info message
-
logInfoEvent
public void logInfoEvent(String messageFormat, Object[] args)
Log a info event with the given message.- Parameters:
messageFormat
- the info message formatargs
- the message arguments
-
logInfoEvent
public void logInfoEvent(String messageFormat, Object[] args, Submission submission)
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
public void logInfoEvent(String message, HttpServletRequest request)
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
public void logInfoEvent(String message, Submission submission)
Log an info event with the given message and associated submission.- Parameters:
message
- info messagesubmission
- the associated submission
-
logInfoEvent
public void logInfoEvent(String message, Submission submission, HttpServletRequest request)
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 public void logInfoEvent(String message, EmailQueue emailQueue)
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
public void logSecurityEvent(String message)
Log a security event with the given message.- Parameters:
message
- error message
-
logSecurityEvent
public void logSecurityEvent(String message, boolean writeToLogger)
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
public void logSecurityEvent(String message, HttpServletRequest request)
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
public void logSecurityEvent(String message, Submission submission)
Log a security event with the given message and for the given submission.- Parameters:
message
- error messagesubmission
- the submission
-
logSecurityEvent
public void logSecurityEvent(String message, Submission submission, boolean writeToLogger)
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
public void logSecurityEvent(String message, Submission submission, HttpServletRequest request)
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
public void logSecurityEvent(String messageFormat, Object[] args)
Log a security event with the given message.- Parameters:
messageFormat
- the error message formatargs
- the message arguments
-
logEvent
protected void logEvent(String type, String message, Submission submission)
-
logEvent
protected void logEvent(String type, String message, Submission submission, boolean writeToLogger)
-
logEvent
protected void logEvent(String type, String message, EmailQueue emailQueue)
-
logEvent
protected void logEvent(String type, String message, HttpServletRequest request)
-
-