Class JsonLoggerUpdateListener
java.lang.Object
org.kawanfw.sql.api.server.listener.JsonLoggerUpdateListener
- All Implemented Interfaces:
UpdateListener
public class JsonLoggerUpdateListener extends Object implements UpdateListener
Concrete implementation of
UpdateListener
. The
updateActionPerformed(ClientEvent, Connection)
logs using JSON format
the ClientEvent
.- Since:
- 9.0
- Author:
- Nicolas de Pomereu
-
Constructor Summary
Constructors Constructor Description JsonLoggerUpdateListener()
-
Method Summary
Modifier and Type Method Description void
updateActionPerformed(SqlEvent evt, Connection connection)
Logs using JSON format theClientEvent
into aLogger
with parameters: Output file pattern:user.home/.kawansoft/log/JsonLoggerUpdateListener.log
. Limit: 1Gb. Count (number of files to use): 3.
-
Constructor Details
-
JsonLoggerUpdateListener
public JsonLoggerUpdateListener()
-
-
Method Details
-
updateActionPerformed
public void updateActionPerformed(SqlEvent evt, Connection connection) throws IOException, SQLExceptionLogs using JSON format theClientEvent
into aLogger
with parameters:- Output file pattern:
user.home/.kawansoft/log/JsonLoggerUpdateListener.log
. - Limit: 1Gb.
- Count (number of files to use): 3.
- Specified by:
updateActionPerformed
in interfaceUpdateListener
- Parameters:
evt
- the SQL update event that is successfully processedconnection
- the Connection in use for the SQL update event- Throws:
IOException
- if an IOException occursSQLException
- if a SQLException occurs
- Output file pattern:
-