net.sf.opensmus
Class MUSLog

java.lang.Object
  extended by net.sf.opensmus.MUSLog

public class MUSLog
extends java.lang.Object

Class to log messages to the server output (console or text file)


Field Summary
static int kDB
          Type of log message : database
static int kDeb
          Type of log message : debug
static int kDebWarn
          Type of log message : debug warning
static int kGrp
          Type of log message : group
static int kMov
          Type of log message : movie
static int kMsgErr
          Type of log message : error in message handling
static int kScr
          Type of log message : scripting
static int kSrv
          Type of log message : server
static int kSys
          Type of log message : system
static int kUsr
          Type of log message : user
static int m_LogLevel
          Bitmaks value set automatically by OpenSMUS from the config file log directives
 
Constructor Summary
MUSLog()
           
 
Method Summary
static void Log(java.lang.Exception e, int level)
          Logs a java exception to output.
static void Log(java.lang.String str, int level)
          Log as message to output.
static void setLogLevel(int level)
          Integer value represent the log level bitmask
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_LogLevel

public static int m_LogLevel
Bitmaks value set automatically by OpenSMUS from the config file log directives


kSys

public static final int kSys
Type of log message : system

See Also:
Constant Field Values

kSrv

public static final int kSrv
Type of log message : server

See Also:
Constant Field Values

kMov

public static final int kMov
Type of log message : movie

See Also:
Constant Field Values

kGrp

public static final int kGrp
Type of log message : group

See Also:
Constant Field Values

kUsr

public static final int kUsr
Type of log message : user

See Also:
Constant Field Values

kDB

public static final int kDB
Type of log message : database

See Also:
Constant Field Values

kMsgErr

public static final int kMsgErr
Type of log message : error in message handling

See Also:
Constant Field Values

kScr

public static final int kScr
Type of log message : scripting

See Also:
Constant Field Values

kDeb

public static final int kDeb
Type of log message : debug

See Also:
Constant Field Values

kDebWarn

public static final int kDebWarn
Type of log message : debug warning

See Also:
Constant Field Values
Constructor Detail

MUSLog

public MUSLog()
Method Detail

setLogLevel

public static void setLogLevel(int level)
Integer value represent the log level bitmask


Log

public static void Log(java.lang.String str,
                       int level)
Log as message to output. Integer parameter is the type of message, for example MUSLog.kSys.


Log

public static void Log(java.lang.Exception e,
                       int level)
Logs a java exception to output. Integer parameter is the type of message, for example MUSLog.kDB.