Software message source.
More...
|
def | __init__ (self, sourceID, name="PythonDL", dataChannels=1, dataChannelNames=None) |
| Any valid source must have a source ID, name and a list of named data channels. More...
|
|
def | IDMessage (self) |
|
def | ChannelsMessage (self) |
|
def | InfoMessage (self, message) |
|
def | WarningMessage (self, message) |
|
def | ErrorMessage (self, message) |
|
def | TimestampMessage (self) |
| Placeholder for timestamp message (Channel 2) More...
|
|
def | DataMessage (self, channelID, data) |
|
Software message source.
Provide a framework for creating valid messages from within Python code. Although this class enforces channel names and provides support for the standard messages (except timestamps), no restriction is placed on the data types used in data messages. See separate documentation for the library to check compatibility.
- See also
- library/base/sources.h
Definition at line 156 of file SLMessages.py.
◆ __init__()
def SELKIELogger.SLMessages.SLMessageSource.__init__ |
( |
|
self, |
|
|
|
sourceID, |
|
|
|
name = "PythonDL" , |
|
|
|
dataChannels = 1 , |
|
|
|
dataChannelNames = None |
|
) |
| |
Any valid source must have a source ID, name and a list of named data channels.
- Parameters
-
sourceID | Valid data source ID number - |
- See also
- IDs
- Parameters
-
name | Source Name (Default: PythonDL) |
dataChannels | Number of data channels to be created (ID 3+) |
dataChannelNames | Names for data channels (First entry = Channel 3) |
Definition at line 169 of file SLMessages.py.
◆ ChannelsMessage()
def SELKIELogger.SLMessages.SLMessageSource.ChannelsMessage |
( |
|
self | ) |
|
- Returns
- Channel name map message (Channel 1)
Definition at line 204 of file SLMessages.py.
◆ DataMessage()
def SELKIELogger.SLMessages.SLMessageSource.DataMessage |
( |
|
self, |
|
|
|
channelID, |
|
|
|
data |
|
) |
| |
- Returns
- Message representing data from this source
- Parameters
-
channelID | Channel ID (Must correspond to a map entry) |
data | Message data |
Definition at line 241 of file SLMessages.py.
◆ ErrorMessage()
def SELKIELogger.SLMessages.SLMessageSource.ErrorMessage |
( |
|
self, |
|
|
|
message |
|
) |
| |
- Returns
- ERROR level log message
- Parameters
-
Definition at line 222 of file SLMessages.py.
◆ IDMessage()
def SELKIELogger.SLMessages.SLMessageSource.IDMessage |
( |
|
self | ) |
|
- Returns
- Source name message (Channel 0)
Definition at line 200 of file SLMessages.py.
◆ InfoMessage()
def SELKIELogger.SLMessages.SLMessageSource.InfoMessage |
( |
|
self, |
|
|
|
message |
|
) |
| |
- Returns
- INFO level log message
- Parameters
-
Definition at line 208 of file SLMessages.py.
◆ TimestampMessage()
def SELKIELogger.SLMessages.SLMessageSource.TimestampMessage |
( |
|
self | ) |
|
Placeholder for timestamp message (Channel 2)
Sources should provide a timestamp periodically to allow messages generated at a particular time to be grouped.
Not implemented here
- Returns
- N/A - Throws NotImplemented exception
Definition at line 229 of file SLMessages.py.
◆ WarningMessage()
def SELKIELogger.SLMessages.SLMessageSource.WarningMessage |
( |
|
self, |
|
|
|
message |
|
) |
| |
- Returns
- WARNING level log message
- Parameters
-
Definition at line 215 of file SLMessages.py.
◆ SourceID
SELKIELogger.SLMessages.SLMessageSource.SourceID |
The documentation for this class was generated from the following file:
- /home/runner/work/Logger/Logger/python/SELKIELogger/SLMessages.py