For log4j I have this very simple sql statement:
log4j.appender.DB.sql=INSERT INTO [LOG].[dbo].[LOGS] VALUES('%m')
%m is a variable which contains the message of the logger. Sometimes this message will also contain ' in it. For example: User 'Admin' deleted object C333421 (rough example)
How can I escape it?