sk_logMessage()

 

Use the sk_logMessage() function to log a specific message to a specified log level. This function is also available as sk_logMessageOnConnection() and skts_logMessage.

Description

This function logs a specified message to a specified log level. This function writes to the Switchmgr Alarm.log.

Syntax

int sk_logMessage(char *aTextMessage, int aLogLevel);

int sk_logMessageOnConnection(char *aTextMessage,int aLogLevel, int aConID);

Threadsafe Syntax

int skts_logMessage(char *aTextMessage,int aLogLevel, int aConID);

Parameters

The function parameters are shown in the table below.

Argument

Description

aTextMessage

Points to the message you want to log.

aLogLevel

This can be specified as follows:

SK_LVL_INFORM = 0
SK_LVL_MAJOR = 1
SK_LVL_MINOR = 2

SK_LVL_INFORM - simply log the message, no error reported

SK_LVL_MAJOR - log the message as a major error

SK_LVL_MINOR - log the message as a minor error

aConID

aConID is a connection identifier specified at connection creation time and used to indicate which LLC an application wishes to communicate with..

Return Values

Possible return values for this function:

OK

Successfully executed.

SK_LOST_LLC

This return value indicates that your application lost contact with the LLC.