com.googlecode.flyway.commandline
Class ConsoleLog

java.lang.Object
  extended by com.googlecode.flyway.commandline.ConsoleLog
All Implemented Interfaces:
com.googlecode.flyway.core.util.logging.Log

public class ConsoleLog
extends Object
implements com.googlecode.flyway.core.util.logging.Log

Wrapper around a simple Console output.


Constructor Summary
ConsoleLog(boolean debug)
          Creates a new Console Log.
 
Method Summary
 void debug(String message)
           
 void error(String message)
           
 void error(String message, Exception e)
           
 void info(String message)
           
 void warn(String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleLog

public ConsoleLog(boolean debug)
Creates a new Console Log.

Parameters:
debug - true for also printing debug statements, false for only info and higher.
Method Detail

debug

public void debug(String message)
Specified by:
debug in interface com.googlecode.flyway.core.util.logging.Log

info

public void info(String message)
Specified by:
info in interface com.googlecode.flyway.core.util.logging.Log

warn

public void warn(String message)
Specified by:
warn in interface com.googlecode.flyway.core.util.logging.Log

error

public void error(String message)
Specified by:
error in interface com.googlecode.flyway.core.util.logging.Log

error

public void error(String message,
                  Exception e)
Specified by:
error in interface com.googlecode.flyway.core.util.logging.Log


Copyright © 2012. All Rights Reserved.