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

com.yworks.yshrink.util.ConsoleLogger Maven / Gradle / Ivy

Go to download

The open-source Java obfuscation tool working with Ant and Gradle by yWorks - the diagramming experts

There is a newer version: 4.1.1
Show newest version
package com.yworks.yshrink.util;

/**
 * @author Michael Schroeder, yWorks GmbH http://www.yworks.com
 */
public class ConsoleLogger extends Logger {

  public ConsoleLogger() {
    register();
  }

  public void doLog( final String s ) {
    //System.out.println( s );
  }

  public void doErr( final String s ) {
    System.err.println( s );
  }

  public void doWarn( final String s ) {
    System.out.println( s );
  }

  public void doWarnToLog( String s ) {
  }

  public void doShrinkLog( String s ) {
    System.out.println( s );
  }

  public void doErr( String s, Throwable ex ) {
    System.out.println( s );
    ex.printStackTrace();
  }

  public void doShrinkLog( String s, ShrinkType type ) {
    System.out.println( s );
  }

  public void close() {
    unregister();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy