sk_logLevel()

 

Use the sk_logLevel() function to manipulate the level of logging in your system. This function is also available as sk_logLevelOnConnection() and skts_logLevel.

Description

This function changes the level of logging based on different settings.

Syntax

int sk_logLevel(int aLogLevel);

int sk_logLevelOnConnection(int aLogLevel, int aConID);

Threadsafe Syntax

int skts_logLevel(int aLogLevel, int aConID);

Parameters

The function parameters are shown in the table below.

Pay close attention to Bit 4 behavior. By default the screen output is enabled, although the bit is cleared. The screen output is disabled only if you set the bit.

Argument

Description

aLogLevel

what is a bit mask represented by the following bits:

• Bit 1 is set - socket.log is turned on.

• Bit 2 is set - messages.log is turned on.

• Both bits cleared - logging is turned off.

• Bit 4 is set - screen output is turned off.

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:

SK_LOST_LLC

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