com.konakart.clientlogging
Class LogMgr

java.lang.Object
  extended by com.konakart.clientlogging.LogMgr

public class LogMgr
extends java.lang.Object

Manages the logging of messages from the client applications - the "clients" are any users of the KonaKart APIs.


Field Summary
static int DEBUG
          DEBUG logging level
static int ERROR
          ERROR logging level
static int INFO
          INFO logging level
protected static org.apache.commons.logging.Log log
          the log
static int OFF
          OFF logging level
static int SEVERE
          SEVERE logging level
static int WARNING
          WARNING logging level
 
Constructor Summary
LogMgr()
          Constructor
 
Method Summary
 void logMsg(int level, java.lang.String msg)
          If the logging level specified is greater than or equal to the current logging level we log the message otherwise nothing is logged.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log
the log


DEBUG

public static final int DEBUG
DEBUG logging level

See Also:
Constant Field Values

INFO

public static final int INFO
INFO logging level

See Also:
Constant Field Values

WARNING

public static final int WARNING
WARNING logging level

See Also:
Constant Field Values

ERROR

public static final int ERROR
ERROR logging level

See Also:
Constant Field Values

SEVERE

public static final int SEVERE
SEVERE logging level

See Also:
Constant Field Values

OFF

public static final int OFF
OFF logging level

See Also:
Constant Field Values
Constructor Detail

LogMgr

public LogMgr()
Constructor

Method Detail

logMsg

public void logMsg(int level,
                   java.lang.String msg)
If the logging level specified is greater than or equal to the current logging level we log the message otherwise nothing is logged.

Parameters:
level - the logging level for the message (0=OFF,1=SEVERE,2=ERROR,4=WARNING,6=INFO,8=DEBUG)
msg - the message to log


Copyright © 2011 DS Data Systems UK Ltd.