Log function
The Log function will write the message to the TV's server log.Syntax
void __stdcall Log(
__in ProtocolSession *psess,
__in ListenSession *lsess,
__in ClientSession *sess,
__in void *mod,
__in char *message,
__in int type
);
Parameters
psess [in] A pointer to a ProtocolSession structure. This is a session assigned to a protocol at the moment it's loaded into the memory. This member can be set to zero.
lsess [in] A pointer to a ListenSession structure. This is a session assigned to a plugin at the moment a user defines a new connection. This member can be set to zero.
sess [in] A pointer to a ClientSession structure. This is a session assigned to a new connection if StartListening returns true. This member can be set to zero.
mod [in] A identifier of the module assigned by the system. In Windows this is a pointer that points to where the DLL is loaded in to the memory. On Linux it can also be a pointer to a symbol. This member can be set to zero.
message [in] A pointer to a null-terminated string conaining the message that needs to be logged.
type [in] This parameter can be one of the following values.
Value | Meaning |
LOG_MESSAGE 0x1 | The message that is being logged is a status message. |
LOG_WARNING 0x2 | The message that is being logged is a warning message. |
LOG_ERROR 0x4 | The message that is being logged is a error message. |
Return value
This function does not return a value.
Requirements
Should be exported by | -
|
Minimum supported API | 1.02
|
Header | tvsserver_base.h
|