{
if (targets.size() > 0 && (!verifyLevel || (level >= Log.getTargetLevel())))
{
if (parameters != null)
{
PrettyPrinter prettyPrinter = Log.getPrettyPrinter();
// replace all of the parameters in the msg string
for(int i = 0; i < parameters.length; i++)
{
String replacement = parameters[i] != null ? prettyPrinter.prettify(parameters[i]) : "null";
//this guy runs into problems if the replacement has a \ or $ in it
//message = message.replaceAll("\\{" + i + "\\}", replacement);
message = StringUtils.substitute(message, "{" + i + "}", replacement);
}