de.init.util.logging
Class SimpleLog

java.lang.Object
  extended by de.init.util.logging.SimpleLog

public class SimpleLog
extends java.lang.Object

Simplistic Logging Utility

Author:
mkandora

Field Summary
static java.lang.String file
           
 
Constructor Summary
SimpleLog()
           
 
Method Summary
static void error(java.lang.Object error)
          Simple log an exception
static void error(java.lang.Object[] stackTrace)
          Simply logs a stackstrace
static void error(java.lang.String message, java.lang.Object exception)
          log an exception
static void error(java.lang.String message, java.lang.Object[] stacktrace)
          logs a stacktrace with a given message
static void log(java.lang.String msg)
          Simply log a message
static void log(java.lang.String msg, java.lang.Object... params)
          logs a message with an arbitrary number of arguments the variable is '{}' without quotes.
static void logDisable()
          disables the logger. this sets a state flag to false for operation.
static void logEnable()
          re-enables this logger.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

file

public static java.lang.String file
Constructor Detail

SimpleLog

public SimpleLog()
Method Detail

error

public static void error(java.lang.String message,
                         java.lang.Object exception)
log an exception

Parameters:
message - an additional message
exception - the exception to log

error

public static void error(java.lang.String message,
                         java.lang.Object[] stacktrace)
logs a stacktrace with a given message

Parameters:
message - an additional message
stacktrace - the complete stacktrace

error

public static void error(java.lang.Object error)
Simple log an exception

Parameters:
error -

error

public static void error(java.lang.Object[] stackTrace)
Simply logs a stackstrace

Parameters:
stackTrace -

log

public static void log(java.lang.String msg)
Simply log a message

Parameters:
msg -

logEnable

public static void logEnable()
re-enables this logger.


logDisable

public static void logDisable()
disables the logger. this sets a state flag to false for operation. use the log file to indicate where the logger has been disable in order to logEnable() it again


log

public static void log(java.lang.String msg,
                       java.lang.Object... params)
logs a message with an arbitrary number of arguments the variable is '{}' without quotes.

Parameters:
msg -
params -