jondo
Class Logger

java.lang.Object
  extended by jondo.Logger

public class Logger
extends java.lang.Object


Field Summary
static int LOG_DETAIL_LEVEL_HIGH
           
static int LOG_DETAIL_LEVEL_HIGHEST
           
static int LOG_DETAIL_LEVEL_LOWER
           
static int LOG_DETAIL_LEVEL_LOWEST
           
static int LOG_LEVEL_ALERT
           
static int LOG_LEVEL_DEBUG
           
static int LOG_LEVEL_EMERG
           
static int LOG_LEVEL_ERR
           
static int LOG_LEVEL_EXCEPTION
           
static int LOG_LEVEL_INFO
           
static int LOG_LEVEL_NOTICE
           
static int LOG_LEVEL_WARNING
           
 
Method Summary
static int[] getAvailableLogTypes()
           
 int getLogDetail()
           
static int getLogDetailCount()
           
static java.lang.String getLogDetailName(int a_detail)
           
 int getLogLevel()
           
static int getLogLevelCount()
          Returns the number of log levels.
static java.lang.String getLogLevelName(int a_level)
           
static java.lang.String getLogTypeName(int a_logType)
           
 int getLogTypes()
           
 void log(int a_logLevel, java.lang.String a_message)
           
 void log(int a_logLevel, java.lang.String a_message, java.lang.Throwable a_throwable)
           
 void log(int a_logLevel, java.lang.Throwable a_throwable)
           
 boolean setLogDetail(int a_logDetail)
           
 void setLogLevel(int a_level)
           
 boolean setLogTypes(int a_logTypes)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG_DETAIL_LEVEL_LOWEST

public static final int LOG_DETAIL_LEVEL_LOWEST
See Also:
Constant Field Values

LOG_DETAIL_LEVEL_LOWER

public static final int LOG_DETAIL_LEVEL_LOWER
See Also:
Constant Field Values

LOG_DETAIL_LEVEL_HIGH

public static final int LOG_DETAIL_LEVEL_HIGH
See Also:
Constant Field Values

LOG_DETAIL_LEVEL_HIGHEST

public static final int LOG_DETAIL_LEVEL_HIGHEST
See Also:
Constant Field Values

LOG_LEVEL_EMERG

public static final int LOG_LEVEL_EMERG
See Also:
Constant Field Values

LOG_LEVEL_ALERT

public static final int LOG_LEVEL_ALERT
See Also:
Constant Field Values

LOG_LEVEL_EXCEPTION

public static final int LOG_LEVEL_EXCEPTION
See Also:
Constant Field Values

LOG_LEVEL_ERR

public static final int LOG_LEVEL_ERR
See Also:
Constant Field Values

LOG_LEVEL_WARNING

public static final int LOG_LEVEL_WARNING
See Also:
Constant Field Values

LOG_LEVEL_NOTICE

public static final int LOG_LEVEL_NOTICE
See Also:
Constant Field Values

LOG_LEVEL_INFO

public static final int LOG_LEVEL_INFO
See Also:
Constant Field Values

LOG_LEVEL_DEBUG

public static final int LOG_LEVEL_DEBUG
See Also:
Constant Field Values
Method Detail

getLogLevelCount

public static int getLogLevelCount()
Returns the number of log levels. Each log level is represented by an integer value from 0 to getLogLevelCount() - 1.

Returns:

getLogLevelName

public static java.lang.String getLogLevelName(int a_level)

getLogDetailName

public static java.lang.String getLogDetailName(int a_detail)

getAvailableLogTypes

public static int[] getAvailableLogTypes()

getLogTypeName

public static java.lang.String getLogTypeName(int a_logType)

getLogDetailCount

public static int getLogDetailCount()

log

public void log(int a_logLevel,
                java.lang.String a_message)

log

public void log(int a_logLevel,
                java.lang.Throwable a_throwable)

log

public void log(int a_logLevel,
                java.lang.String a_message,
                java.lang.Throwable a_throwable)

getLogDetail

public int getLogDetail()

setLogDetail

public boolean setLogDetail(int a_logDetail)

setLogTypes

public boolean setLogTypes(int a_logTypes)

getLogTypes

public int getLogTypes()

setLogLevel

public void setLogLevel(int a_level)

getLogLevel

public int getLogLevel()