public abstract class ConnectorLogger
extends java.lang.Object
As each device may use different logging procedures (files, text to screen, etc.) the logging methods have been defined to be abstract so each device implements their preferred logging strategy (or none).
As part of the implementation it is required to define which messages will be logged and which not.
| Constructor and Description |
|---|
ConnectorLogger()
Class constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static ConnectorLogger |
getInstance()
Retrieves the active instance of the Connector Logger.
|
abstract boolean |
logConnectionEvents()
Retrieves whether connection events should be logged or not.
|
abstract boolean |
logDataPointEvents()
Retrieves whether data point events should be logged or not.
|
abstract boolean |
logDataPushEvents()
Retrieves whether data push events should be logged or not.
|
abstract boolean |
logDebugMessages()
Retrieves whether to log debug level messages or not.
|
abstract boolean |
logDeviceRequestEvents()
Retrieves whether device request events should be logged or not.
|
abstract boolean |
logErrorMessages()
Retrieves whether to log error level messages or not.
|
void |
logEvent(Event event)
Logs the given event depending on the severity and event
type.
|
abstract void |
logException(java.lang.Exception e)
Logs the given exception.
|
abstract boolean |
logExceptions()
Retrieves whether to log exceptions or not.
|
abstract boolean |
logFileSystemEvents()
Retrieves whether file system events should be logged or not.
|
abstract boolean |
logFirmwareEvents()
Retrieves whether firmware events should be logged or not.
|
abstract boolean |
logInformationMessages()
Retrieves whether to log information level messages or not.
|
abstract boolean |
logPackets()
Retrieves whether to log EDP packets or not.
|
abstract boolean |
logRCIEvents()
Retrieves whether RCI events should be logged or not.
|
void |
logSystemDebug(java.lang.String message)
Logs the given system debug message if log system events
and log debug messages are enabled.
|
void |
logSystemError(java.lang.String message)
Logs the given system error message if log system events
and log error messages are enabled.
|
abstract boolean |
logSystemEvents()
Retrieves whether system events should be logged or not.
|
void |
logSystemInfo(java.lang.String message)
Logs the given system information message if log system events
and log information messages are enabled.
|
public ConnectorLogger()
public static ConnectorLogger getInstance()
public abstract boolean logConnectionEvents()
true if connection events should be logged, false
otherwise.public abstract boolean logDataPointEvents()
true if data point events should be logged,
false otherwise.public abstract boolean logDataPushEvents()
true if data push events should be logged, false
otherwise.public abstract boolean logDebugMessages()
true to log debug level messages, false
otherwise.public abstract boolean logDeviceRequestEvents()
true if device request events should be logged,
false otherwise.public abstract boolean logErrorMessages()
true to log error level messages, false
otherwise.public void logEvent(Event event)
event - Event to log.logConnectionEvents(),
logDebugMessages(),
logInformationMessages(),
logErrorMessages()public abstract void logException(java.lang.Exception e)
e - Exception to log.public abstract boolean logExceptions()
true to log exceptions, false otherwise.public abstract boolean logFileSystemEvents()
true if file system events should be logged,
false otherwise.public abstract boolean logFirmwareEvents()
true if firmware events should be logged, false
otherwise.public abstract boolean logInformationMessages()
true to log information level messages, false
otherwise.public abstract boolean logPackets()
true to log EDP packets, false otherwise.public abstract boolean logRCIEvents()
true if RCI events should be logged, false
otherwise.public void logSystemDebug(java.lang.String message)
message - Debug message.logSystemEvents(),
logDebugMessages()public void logSystemError(java.lang.String message)
message - Error message.logSystemEvents(),
logErrorMessages()public abstract boolean logSystemEvents()
true if system events should be logged, false
otherwise.public void logSystemInfo(java.lang.String message)
message - Information message.logSystemEvents(),
logInformationMessages()© Copyright 2014 Etherios, Inc. All rights reserved. Etherios, Inc. is a Division of Digi International Inc.