• Platform
    • Manager
    • Maestro
    • Exchange
    • Workspaces
    • Analytics
    • Springboard
    • API
Journey SDK

Journey SDK

  • Getting Started
  • Developer Guide
  • References
  • Services Guide

›Classes

com.avoka.tm.func

  • com.avoka.tm.func
  • Classes

    • Class DeliveryFuncResult
    • Class DeliveryFuncResultBuilder
    • Class FormFuncResult
    • Class FuncParam

    Interface

    • Interface IFluentFunction

com.avoka.tm.http

  • com.avoka.tm.http
  • Classes

    • Class DeleteRequest
    • Class GetRequest
    • Class HttpRequest
    • Class HttpRequest.FileParam
    • Class HttpRequest.Param
    • Class HttpResponse
    • Class PatchRequest
    • Class PostRequest
    • Class PutRequest
    • Class RequestBuilder

com.avoka.tm.job

  • com.avoka.tm.job
  • Classes

    • Class ActionResult
    • Class ActionResultBuilder
    • Class Jobs

com.avoka.tm.query

  • com.avoka.tm.query
  • Classes

    • Class JobQuery
    • Class PropertyQuery
    • Class RefDataQuery
    • Class SpaceQuery
    • Class SvcConnQuery
    • Class SvcDefQuery
    • Class TxnHistoryQuery
    • Class TxnQuery
    • Class UserQuery

    Enum

    • Enum TxnHistoryQuery.Time
    • Enum TxnQuery.Time

com.avoka.tm.security

  • com.avoka.tm.security
  • Classes

    • Class Saml2Parser
    • Class Saml2ParserResult
    • Class SsoAuthToken

com.avoka.tm.svc

  • com.avoka.tm.svc
  • Classes

    • Class DeliveryTxnBuilder
    • Class Emailer
    • Class ErrorLogger
    • Class EventLogger
    • Class FluentFuncInvoker
    • Class GroovyServiceInvoker
    • Class JobUpdater
    • Class PropertyBuilder
    • Class ReceiptSvc
    • Class RefDataSvc
    • Class ServiceInvoker
    • Class SvcConnUpdater
    • Class TrackingCodeBuilder
    • Class TxnBuilder
    • Class TxnCheckpointSvc
    • Class TxnUpdater
    • Class UserBuilder

com.avoka.tm.test

  • com.avoka.tm.test
  • Classes

    • Class AbstractJUnitTest
    • Class JUnitTestRunner
    • Class JUnitTestRunner.TestWrapper
    • Class MockRegister
    • Class MockRequest
    • Class MockResponse
    • Class MockServletContext
    • Class MockVoBuilder

    Exception

    • junittestexception

com.avoka.tm.util

  • com.avoka.tm.util
  • Classes

    • Class Contract
    • Class DeliveryResult
    • Class DeliveryResultBuilder
    • Class Logger
    • Class MemCache
    • Class ObjectMapper
    • Class Path
    • Class Security
    • Class Threads
    • Class TxnUrlBuilder
    • Class VelTemplate
    • Class XmlDoc

    Enum

    • Enum ObjectMapper.MappingStrategy

    Exception

    • redirectexception

com.avoka.tm.vo

  • com.avoka.tm.vo
  • Classes

    • Class FileAttach
    • Class Form
    • Class Job
    • Class JobAction
    • Class JobStep
    • Class Space
    • Class SvcConn
    • Class SvcDef
    • Class Txn
    • Class TxnCheckpoint
    • Class TxnDeliveryFunc
    • Class User

Class EventLogger

public class EventLogger
extends java.lang.Object
Provides an Event Logger service which will log [ INFO, WARN | ERROR | SECURITY ] events to the Transact event log database table. Event Log records are not encrypted and should not contain sensitive PII data. Examples Please find the event logger examples below.

Create Info Event Log Record

The example below creates a 'Info' Event Log record associated with the specified transaction record.
 import com.avoka.tm.svc.*
 new EventLogger()
      .setMessage("IDV-Status - application completed")
      .setTxn(txn)
      .logInfo()  

Create Security Event Log Record

The example below creates a 'Security' Event Log record associated with the specified transaction record. This example configures the EventLogger not to write the sensitive event log message to the server.log file.
 import com.avoka.tm.svc.*
 new EventLogger()
      .setMessage("Fraud Event with application : " + txn.formStatus + " : " + txn.formDataMap)
      .setRequest(request)
      .setTxn(txn)
      .setWriteToLogger(false)
      .logSecurity()  
Since:
5.0.0

Constructor Summary

Constructors
Constructor Description
EventLogger()

Method Summary

All Methods Instance Methods Concrete Methods
Modifier and Type Method Description
void logError() Log an Error event log record.
void logInfo() Log an Information event log record.
void logSecurity() Log an Security event log record.
void logWarning() Log an Warning event log record.
EventLogger setMessage​(java.lang.String message) Set the event log message property.
EventLogger setRequest​(javax.servlet.http.HttpServletRequest request) Set the request property to log.
EventLogger setTxn​(Txn txn) Set the transaction to associate with the event log.
EventLogger setTxnId​(java.lang.Long txnId) Set the transaction record id to associate with the event log.
EventLogger setWriteToLogger​(boolean writeToLogger) Specify whether to write a message to the Log4J server.log file.

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

EventLogger

public EventLogger()

Method Detail

setMessage

public EventLogger setMessage​(java.lang.String message) Set the event log message property.
Parameters:
message - the message to log
Returns:
the event logger

setRequest

public EventLogger setRequest​(javax.servlet.http.HttpServletRequest request) Set the request property to log.
Parameters:
request - the message to log
Returns:
the event logger

setTxn

public EventLogger setTxn​(Txn txn) Set the transaction to associate with the event log.
Parameters:
txn - the transaction to associate with the event log
Returns:
the event logger

setTxnId

public EventLogger setTxnId​(java.lang.Long txnId) Set the transaction record id to associate with the event log.
Parameters:
txnId - the transaction record id to associate with the event log
Returns:
the event logger

setWriteToLogger

public EventLogger setWriteToLogger​(boolean writeToLogger) Specify whether to write a message to the Log4J server.log file.
Parameters:
writeToLogger - specify whether to write a message to the Log4J server.log file
Returns:
the event logger

logInfo

public void logInfo() Log an Information event log record.

logWarning

public void logWarning() Log an Warning event log record.

logError

public void logError() Log an Error event log record.

logSecurity

public void logSecurity() Log an Security event log record.
← Class ErrorLoggerClass FluentFuncInvoker →

Terms & Conditions

Privacy Policy

Cookie Policy

Copyright © 2003-2022 Temenos Headquarters SA