com.cenqua.shaj.log
Interface Log

All Known Implementing Classes:
CommonsLoggingLog, JavaLoggerLog, Log4Log, PrintStreamLog

public interface Log

Used by Shaj to log errors and debug information.

Setting the system propeerty "shaj.debug" will force Shaj to output error and debug logging to System.err. Shaj is reasonably verbose in this mode, which is useful for debugging your programs.

By default, Shaj will attempt delegate logging to (in order):

You can override this by setting your own default logger


Nested Class Summary
static class Log.Factory
           
 
Method Summary
 void debug(java.lang.String msg)
           
 void error(java.lang.String msg)
           
 void error(java.lang.String msg, java.lang.Throwable e)
           
 boolean isDebug()
           
 

Method Detail

isDebug

public boolean isDebug()

error

public void error(java.lang.String msg)

error

public void error(java.lang.String msg,
                  java.lang.Throwable e)

debug

public void debug(java.lang.String msg)


Copyright © 2005 Cenqua. All Rights Reserved.