presto-plugin-toolkit/src/main/java/io/prestosql/plugin/base/util/LoggingInvocationHandler.java/LoggingInvocationHandler/formatArgument
class LoggingInvocationHandler:    private static String formatArgument(Object arg)
    {
        if (arg instanceof String) {
            return "'" + ((String) arg).replace("'", "''") + "'";
        }
        return String.valueOf(arg);
    }