public interface IEsfLoggerService
Modifier and Type | Field and Description |
---|---|
static int |
LOG_LEVEL_DEBUG
Log level for debugging messages (but not lengthy dumps of information such as byte streams).
|
static int |
LOG_LEVEL_DUMP
Log level for data dumps, such as list of hex bytes from serial streams, etc.
|
static int |
LOG_LEVEL_ERROR
Log level for only errors (something didn't work as expected).
|
static int |
LOG_LEVEL_INFO
Log level for informational messages about the status of the process.
|
static int |
LOG_LEVEL_NONE
Set process to
LOG_LEVEL_NONE if no event messages are desired to be sent to system log. |
static int |
LOG_LEVEL_WARNING
Log level for warning events (may or may not be a problem).
|
static java.lang.String |
SERVICE_NAME
Reports the class name representing this interface.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLabel()
Returns the label that is currently set to prepend to a log message
|
int |
getLevel()
Gets the
logLevel for a process. |
int |
getLevel(java.lang.String symbolicName)
this is a method to get the log level of any bundle that is using the log
service by its bundle symbolic name.
|
void |
logDebug(java.lang.String message)
Generates a debug level logging message (
LOG_LEVEL_DEBUG ). |
void |
logDump(byte[] message)
Generates a dump level logging message (
LOG_LEVEL_DUMP ). |
void |
logDump(java.lang.String message)
Generates a dump level logging message (
LOG_LEVEL_DUMP ). |
void |
logError(java.lang.String message)
Generates an error level logging message (
LOG_LEVEL_ERROR ). |
void |
logInfo(java.lang.String message)
Generates a info level logging message (
LOG_LEVEL_INFO ). |
void |
logWarning(java.lang.String message)
Generates a warning level logging message (
LOG_LEVEL_WARNING ). |
void |
setLabel(java.lang.String label)
Adds a label that will be prepended to the log message.
|
void |
setLevel(int logLevel)
Sets the
logLevel for a process. |
void |
setLevel(java.lang.String logLevel)
Sets the
logLevel for a process. |
static final java.lang.String SERVICE_NAME
static final int LOG_LEVEL_NONE
LOG_LEVEL_NONE
if no event messages are desired to be sent to system log.static final int LOG_LEVEL_ERROR
static final int LOG_LEVEL_WARNING
static final int LOG_LEVEL_INFO
static final int LOG_LEVEL_DEBUG
static final int LOG_LEVEL_DUMP
void setLevel(int logLevel) throws java.lang.Exception
logLevel
for a process.logLevel
- the logging level to usejava.lang.Exception
- if there is a problem setting the levelvoid setLevel(java.lang.String logLevel) throws java.lang.Exception
logLevel
for a process.logLevel
- the logging level to use, as String
, such as "@IEsfLoggerService.LOG_LEVEL_INFO
".java.lang.Exception
- if there is a problem setting the levelint getLevel()
logLevel
for a process.void logError(java.lang.String message)
LOG_LEVEL_ERROR
).message
- the message to be generated, as String
void logWarning(java.lang.String message)
LOG_LEVEL_WARNING
).message
- the message to be generated, as String
void logInfo(java.lang.String message)
LOG_LEVEL_INFO
).message
- the message to be generated, as String
void logDebug(java.lang.String message)
LOG_LEVEL_DEBUG
).message
- the message to be generated, as String
void logDump(java.lang.String message)
LOG_LEVEL_DUMP
).message
- the message to be generated, as String
void logDump(byte[] message)
LOG_LEVEL_DUMP
).message
- the message to be generated, as a byte arrayint getLevel(java.lang.String symbolicName)
symbolicName
- the symbolic name of the bundle to get the log level ofjava.lang.String getLabel()
void setLabel(java.lang.String label)
label
- a label to prepend to the messageCopyright © 2009 Eurotech Inc. All rights reserved.