com.omnipilot.lassopro
Class LassoLogging

java.lang.Object
  extended bycom.omnipilot.lassopro.LassoLogging

public class LassoLogging
extends java.lang.Object

Used for outputting messages to the console, file or database.


Field Summary
static int FLAG_DEST_CONSOLE
          Output information to the Lasso console
static int FLAG_DEST_DATABASE
          Store the information in the error logging table.
static int FLAG_DEST_FILE
          Output information to the log file
static int LOG_LEVEL_CRITICAL
          Used for logging critical errors
static int LOG_LEVEL_DETAIL
          Used for logging non-error and status messages
static int LOG_LEVEL_WARNING
          Used for logging warnings and non-critical errors
 
Constructor Summary
protected LassoLogging()
           
 
Method Summary
static int setDestination(int msgLevel, int destination)
          Changes the system-wide log destination preference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG_LEVEL_CRITICAL

public static final int LOG_LEVEL_CRITICAL
Used for logging critical errors

See Also:
Constant Field Values

LOG_LEVEL_WARNING

public static final int LOG_LEVEL_WARNING
Used for logging warnings and non-critical errors

See Also:
Constant Field Values

LOG_LEVEL_DETAIL

public static final int LOG_LEVEL_DETAIL
Used for logging non-error and status messages

See Also:
Constant Field Values

FLAG_DEST_CONSOLE

public static final int FLAG_DEST_CONSOLE
Output information to the Lasso console

See Also:
Constant Field Values

FLAG_DEST_FILE

public static final int FLAG_DEST_FILE
Output information to the log file

See Also:
Constant Field Values

FLAG_DEST_DATABASE

public static final int FLAG_DEST_DATABASE
Store the information in the error logging table. The data can be viewed in the Lasso Admin.

See Also:
Constant Field Values
Constructor Detail

LassoLogging

protected LassoLogging()
Method Detail

setDestination

public static int setDestination(int msgLevel,
                                 int destination)
Changes the system-wide log destination preference

Parameters:
msgLevel - one of the LOG_LEVEL constants
destination - one or more logically or'ed FLAG_DEST constants