package com.google.common.html.plugin;

import org.apache.maven.plugin.logging.Log;

/** */
public final class TestLog implements Log {

  @Override
  public void debug(CharSequence msg) {
    // Do nothing
  }

  @Override
  public void debug(Throwable err) {
    // Do nothing
  }

  @Override
  public void debug(CharSequence msg, Throwable err) {
    // Do nothing
  }

  @Override
  public void error(CharSequence msg) {
    // Do nothing
  }

  @Override
  public void error(Throwable err) {
    // Do nothing
  }

  @Override
  public void error(CharSequence msg, Throwable err) {
    // Do nothing
  }

  @Override
  public void info(CharSequence msg) {
    // Do nothing
  }

  @Override
  public void info(Throwable err) {
    // Do nothing
  }

  @Override
  public void info(CharSequence msg, Throwable err) {
    // Do nothing
  }

  @Override
  public boolean isDebugEnabled() {
    return false;
  }

  @Override
  public boolean isErrorEnabled() {
    return false;
  }

  @Override
  public boolean isInfoEnabled() {
    return false;
  }

  @Override
  public boolean isWarnEnabled() {
    return false;
  }

  @Override
  public void warn(CharSequence msg) {
    // Do nothing
  }

  @Override
  public void warn(Throwable err) {
    // Do nothing
  }

  @Override
  public void warn(CharSequence msg, Throwable err) {
    // Do nothing
  }

}

@@ -130,16 +130,399 @@
  Log %7B%0A%0A
+  private boolean verbose;%0A%0A  public boolean verbose() %7B%0A    return verbose;%0A  %7D%0A%0A  public TestLog verbose(boolean b) %7B%0A    this.verbose = b;%0A    return this;%0A  %7D%0A%0A  private void log(String prefix, CharSequence msg, Throwable err) %7B%0A    if (verbose) %7B%0A      System.err.println(msg != null ? prefix + %22: %22 + msg : prefix);%0A      if (err != null) %7B err.printStackTrace(); %7D%0A    %7D%0A  %7D%0A%0A
   @Overr
@@ -517,32 +517,32 @@
  %7D%0A%0A  @Override%0A
-
   public void de
@@ -565,37 +565,41 @@
  msg) %7B%0A    
-// Do nothing
+debug(msg, null);
 %0A  %7D%0A%0A  @Ove
@@ -641,37 +641,41 @@
  err) %7B%0A    
-// Do nothing
+debug(null, err);
 %0A  %7D%0A%0A  @Ove
@@ -735,37 +735,47 @@
  err) %7B%0A    
-// Do nothing
+log(%22DEBUG%22, msg, err);
 %0A  %7D%0A%0A  @Ove
@@ -820,37 +820,41 @@
  msg) %7B%0A    
-// Do nothing
+error(msg, null);
 %0A  %7D%0A%0A  @Ove
@@ -896,37 +896,41 @@
  err) %7B%0A    
-// Do nothing
+error(null, err);
 %0A  %7D%0A%0A  @Ove
@@ -990,37 +990,47 @@
  err) %7B%0A    
-// Do nothing
+log(%22ERROR%22, msg, err);
 %0A  %7D%0A%0A  @Ove
@@ -1074,37 +1074,40 @@
  msg) %7B%0A    
-// Do nothing
+info(msg, null);
 %0A  %7D%0A%0A  @Ove
@@ -1148,37 +1148,40 @@
  err) %7B%0A    
-// Do nothing
+info(null, err);
 %0A  %7D%0A%0A  @Ove
@@ -1240,37 +1240,46 @@
  err) %7B%0A    
-// Do nothing
+log(%22INFO%22, msg, err);
 %0A  %7D%0A%0A  @Ove
@@ -1323,35 +1323,37 @@
 () %7B%0A    return 
-fal
+verbo
 se;%0A  %7D%0A%0A  @Over
@@ -1396,35 +1396,37 @@
 () %7B%0A    return 
-fal
+verbo
 se;%0A  %7D%0A%0A  @Over
@@ -1468,35 +1468,37 @@
 () %7B%0A    return 
-fal
+verbo
 se;%0A  %7D%0A%0A  @Over
@@ -1552,11 +1552,13 @@
 urn 
-fal
+verbo
 se;%0A
@@ -1613,37 +1613,40 @@
  msg) %7B%0A    
-// Do nothing
+warn(msg, null);
 %0A  %7D%0A%0A  @Ove
@@ -1687,37 +1687,40 @@
  err) %7B%0A    
-// Do nothing
+warn(null, err);
 %0A  %7D%0A%0A  @Ove
@@ -1787,21 +1787,30 @@
     
-// Do nothing
+log(%22WARN%22, msg, err);
 %0A  %7D

allow logging to diagnose test problems