smartinspectpython.silogheader
Represents the Log Header packet type which is used for storing and transferring log metadata.
The SILogHeader class is used to store and transfer log metadata. After the SIPipeProtocol or SITcpProtocol has established a connection, a Log Header packet with the metadata of the current logging context is created and written. Log Header packets are used by the SmartInspect Router application for its filter and trigger functionality.
Threadsafety:
This class is not guaranteed to be thread-safe. However, instances of this class will normally only be used in the context of a single thread.
Gets the AppName property value.
Represents the application name of this Log Header.
The application name of a Log Header is usually set to the name of the application this Log Header is created in.
Gets the Content property value.
Represents the entire content of this Log Header packet.
The content of a Log Header packet is a key-value (syntax: key=value) list of the properties of this Log Header packet (currently only the AppName and the HostName strings). Key-value pairs are separated by carriage return and newline characters.
Gets the HostName property value.
Represents the hostname of this Log Header.
The hostname of a Log Header is usually set to the name of the machine this Log Header is sent from.
Overridden. Returns SIPacketType.LogHeader.
Overridden. Returns the total occupied memory size of this Log Header packet (including header length).
The total occupied memory size of this Log Header is the size of memory occupied by all strings and any internal data structures of this Log Header. Also note that the data is in UTF-8 encoding, so it takes up twice the storage as ASCII encoding.