// Path: src/main/java/org/rhq/simone/util/ThrowableUtil.java
// public static String throwableToString(Throwable t) {
//   StringWriter sw = new StringWriter();
//   PrintWriter pw = new PrintWriter(sw);
//   t.printStackTrace(pw);
//   pw.flush();
//   return sw.toString();
// }


import static org.rhq.simone.util.ThrowableUtil.throwableToString;
import java.io.PrintStream;
import java.text.SimpleDateFormat;
import java.util.Date;
    println(System.out, Level.WARN, message);
  }

  @Override
  public void warn(String message, Throwable t) {
    println(System.out, Level.WARN, message, t);
  }

  @Override
  public void error(String message) {
    println(System.err, Level.ERROR, message);
  }

  @Override
  public void error(String message, Throwable t) {
    println(System.err, Level.ERROR, message, t);
  }

  private void println(PrintStream stream, Level level, String message) {
    println(stream, level, message, null);
  }

  private void println(PrintStream stream, Level level, String message, Throwable t) {
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS zzz");
    StringBuilder
        sb =
        new StringBuilder(sdf.format(new Date())).append(" [").append(level).append("] [").append(className)
            .append("] ").append(message);
    if (t != null) {
      sb.append(System.getProperty("line.separator"));
// Path: src/main/java/org/rhq/simone/util/ThrowableUtil.java
// public static String throwableToString(Throwable t) {
//   StringWriter sw = new StringWriter();
//   PrintWriter pw = new PrintWriter(sw);
//   t.printStackTrace(pw);
//   pw.flush();
//   return sw.toString();
// }


// Path: src/main/java/org/rhq/simone/util/log/ConsoleLog.java
import static org.rhq.simone.util.ThrowableUtil.throwableToString;
import java.io.PrintStream;
import java.text.SimpleDateFormat;
import java.util.Date;

    println(System.out, Level.WARN, message);
  }

  @Override
  public void warn(String message, Throwable t) {
    println(System.out, Level.WARN, message, t);
  }

  @Override
  public void error(String message) {
    println(System.err, Level.ERROR, message);
  }

  @Override
  public void error(String message, Throwable t) {
    println(System.err, Level.ERROR, message, t);
  }

  private void println(PrintStream stream, Level level, String message) {
    println(stream, level, message, null);
  }

  private void println(PrintStream stream, Level level, String message, Throwable t) {
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS zzz");
    StringBuilder
        sb =
        new StringBuilder(sdf.format(new Date())).append(" [").append(level).append("] [").append(className)
            .append("] ").append(message);
    if (t != null) {
      sb.append(System.getProperty("line.separator"));
      sb.append(throwableToString(t));