org.jagatoo.logging
Class JAGTLog

java.lang.Object
  extended by org.jagatoo.logging.JAGTLog

public final class JAGTLog
extends java.lang.Object

The JAGTLog is a simple shortcut implementation for the Log class. Please only use this for JAGaToo internal logging. For any other case use the Log class itself or write a similar implementation like this.

See Also:
Log

Field Summary
static LogChannel LOG_CHANNEL
           
 
Method Summary
static void close()
           
static void debug(java.lang.Object... message)
          This is an alias for println( channel, DEBUG, message ).
static void decreaseIndentation()
          Decreases the indentation level to use for the following log outputs by one.
static void error(java.lang.Object... message)
          This is an alias for println( channel, ERROR, message ).
static void exception(java.lang.Object... message)
          This is an alias for println( channel, EXCEPTION, message ).
static void flush()
           
static int getIndentation()
           
static java.lang.String getIndentationString()
           
static LogManager getLogManager()
           
static void increaseIndentation()
          Increases the indentation level to use for the following log outputs by one.
static void print(int logLevel, java.lang.Object... message)
          Prints out a log message without a newline.
static void print(java.lang.Throwable exception)
          Dumps an exception to the logging system.
static void println(int logLevel, java.lang.Object... message)
          Prints out a log message with a newline.
static void println(java.lang.Object... message)
          This is an alias for println( channel, REGULAR, message ).
static void printlnEx(java.lang.Object... message)
          This is an alias for println( channel, EXHAUSTIVE, message ).
static void profile(java.lang.Object... message)
          This is an alias for println( channel, PROFILE, message ).
static void setIndentation(int indentation)
          Sets the indentation level to use for the following log outputs.
static void setIndentationString(java.lang.String indentationString)
          Sets the String to be prefixed to the actualy logging output n times.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG_CHANNEL

public static final LogChannel LOG_CHANNEL
Method Detail

getLogManager

public static final LogManager getLogManager()
Returns:
the LogManager to register/deregister LogInterfaces.

setIndentationString

public static final void setIndentationString(java.lang.String indentationString)
Sets the String to be prefixed to the actualy logging output n times.

Parameters:
indentationString -

getIndentationString

public static final java.lang.String getIndentationString()
Returns:
the String to be prefixed to the actualy logging output n times.

setIndentation

public static final void setIndentation(int indentation)
Sets the indentation level to use for the following log outputs.

Parameters:
indentation -

getIndentation

public static final int getIndentation()
Returns:
the indentation level to use for the following log outputs.

increaseIndentation

public static final void increaseIndentation()
Increases the indentation level to use for the following log outputs by one.


decreaseIndentation

public static final void decreaseIndentation()
Decreases the indentation level to use for the following log outputs by one.


print

public static final void print(int logLevel,
                               java.lang.Object... message)
Prints out a log message without a newline.

Parameters:
logLevel -
message -

println

public static final void println(int logLevel,
                                 java.lang.Object... message)
Prints out a log message with a newline.

Parameters:
logLevel -
message -

print

public static final void print(java.lang.Throwable exception)
Dumps an exception to the logging system.

Parameters:
exception -

println

public static final void println(java.lang.Object... message)
This is an alias for println( channel, REGULAR, message ).

Parameters:
message -

printlnEx

public static final void printlnEx(java.lang.Object... message)
This is an alias for println( channel, EXHAUSTIVE, message ).

Parameters:
message -

error

public static final void error(java.lang.Object... message)
This is an alias for println( channel, ERROR, message ).

Parameters:
message -

exception

public static final void exception(java.lang.Object... message)
This is an alias for println( channel, EXCEPTION, message ).

Parameters:
message -

debug

public static final void debug(java.lang.Object... message)
This is an alias for println( channel, DEBUG, message ).

Parameters:
message -

profile

public static final void profile(java.lang.Object... message)
This is an alias for println( channel, PROFILE, message ).

Parameters:
message -

flush

public static final void flush()

close

public static final void close()