code: protected void writeLogging(Definition def, Writer out, int indent, String level, String content, String... params)
           throws IOException
     {
        writeIndent(out, indent);
        if (def.isSupportJbossLogging())
        {
           out.write("log.trace");
           int size = params.length;
           if (size > 0)
              out.write("f");
           out.write("(\"" + content + "(");
           for (int i = 0; i < size; i++)
           {
              out.write("%s");
              if (i < size - 1)
                 out.write(", ");
           }
           out.write(")\"");
           for (int i = 0; i < size; i++)
           {
              out.write(", ");
              out.write(params[i]);
           }
           out.write(");");
        }
        else
        {
           out.write("log.finest(\"" + content + "()\");");
        }
        writeEol(out);
     }
docs: output logging
  
  @param def     definition
  @param out     Writer
  @param indent  indent
  @param level   logging level
  @param content logging content
  @param params  logging params
  @throws IOException ioException