|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbandy.service.Service
org.openbandy.service.LogService
public final class LogService
This is a helper class to simplify (and abstract) the usage of logging
methods as logging functionality by providing static methods.
(c) Copyright P. Bolliger 2007, ALL RIGHTS RESERVED.
| Constructor Summary | |
|---|---|
LogService()
|
|
| Method Summary | |
|---|---|
static void |
debug(java.lang.Object originName,
java.lang.String msg)
Forwards a message with log level LEVEL_DEBUG to the log service |
static void |
debug(java.lang.String originName,
java.lang.String msg)
Forwards a message with log level LEVEL_DEBUG to the log service |
static void |
error(java.lang.Object originName,
java.lang.String msg,
java.lang.Throwable exception)
Forwards a message with log level LEVEL_ERROR to the log service |
static void |
error(java.lang.String originName,
java.lang.String msg,
java.lang.Throwable exception)
Forwards a message with log level LEVEL_ERROR to the log service |
static LogImpl |
getLog()
Returns a reference to the actual log if this is an instance of type org.openbandy.log.LogImpl. |
static void |
info(java.lang.Object originName,
java.lang.String msg)
Forwards a message with log level LEVEL_INFO to the log service |
static void |
info(java.lang.String originName,
java.lang.String msg)
Forwards a message with log level LEVEL_INFO to the log service |
static void |
setLog(Log log)
|
static void |
setLogLevel(int level)
Set the log level. |
static void |
warn(java.lang.Object originName,
java.lang.String msg)
Forwards a message with log level LEVEL_WARNING to the log service |
static void |
warn(java.lang.String originName,
java.lang.String msg)
Forwards a message with log level LEVEL_WARNING to the log service |
| Methods inherited from class org.openbandy.service.Service |
|---|
runningOnMicroEdition, runningOnSunWTK |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LogService()
| Method Detail |
|---|
public static LogImpl getLog()
org.openbandy.log.LogImpl.
public static void setLog(Log log)
public static void error(java.lang.Object originName,
java.lang.String msg,
java.lang.Throwable exception)
originName - The object reportingmsg - The message to logexception - The exception that was caused with this error
public static void error(java.lang.String originName,
java.lang.String msg,
java.lang.Throwable exception)
originName - The reporting object's class namemsg - The message to logexception - The exception that was caused with this error
public static void warn(java.lang.Object originName,
java.lang.String msg)
originName - The object reportingmsg - The message to log
public static void warn(java.lang.String originName,
java.lang.String msg)
originName - The name of the object reportingmsg - The message to log
public static void info(java.lang.Object originName,
java.lang.String msg)
originName - The object reportingmsg - The message to log
public static void info(java.lang.String originName,
java.lang.String msg)
originName - The name of the object reportingmsg - The message to log
public static void debug(java.lang.Object originName,
java.lang.String msg)
originName - The object reportingmsg - The message to log
public static void debug(java.lang.String originName,
java.lang.String msg)
originName - The name of the object reportingmsg - The message to logpublic static void setLogLevel(int level)
level - Log level according to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||