All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.appland.appmap.util.Logger Maven / Gradle / Ivy

There is a newer version: 1.27.1
Show newest version
package com.appland.appmap.util;

import com.appland.appmap.config.AppMapConfig;

public class Logger {
  private static final org.tinylog.TaggedLogger logger = AppMapConfig.getLogger(null);
  
  public static void println(Throwable e) {
    logger.error(e);
  }

  public static void println(String msg) {
    logger.debug(msg);
  }

  public static void printf(String format, Object... args) {
    logger.debug(() -> String.format(format.trim(), args));
  }

  public static void error(String format, Object... args) {
    logger.error(() -> String.format(format.trim(), args));
  }

  public static void error(Throwable t) {
    println(t);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy