Here you can find the source of logBind(Logger log, int index, Object value)
public static void logBind(Logger log, int index, Object value)
//package com.java2s; /*L// ww w .j av a 2s . c o m * Copyright Northwestern University. * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.io/psc/LICENSE.txt for details. */ import org.slf4j.Logger; public class Main { public static void logBind(Logger log, int index, Object value) { if (log.isDebugEnabled()) { StringBuffer msg = new StringBuffer("binding "); appendBoundValue(value, msg); msg.append(" to parameter: ").append(index); log.debug(msg.toString()); } } private static StringBuffer appendBoundValue(Object value, StringBuffer msg) { if (value == null) { msg.append("null"); } else { msg.append("'").append(value).append("'"); } return msg; } }