setSndLevel()
The function sets the send debug level for messages.
Synopsis
int setSndLevel(int level, string msgFilter = "all", string manFilter =
"all")
Parameters
Parameter | Description |
---|---|
level | The send level for messages. See -snd level. |
msgFilter | The optional msgFilter corresponds to the command line option -sndFilterMsg . |
manFilter |
The optional manFilter corresponds to the command line option -sndFilterMan. |
Return value
The function returns 0 if it was executed successfully and -1 if an error occurred (e.g. an unknown manager name).
Errors
Missing/incorrect arguments.
Description
The function sets the send debug level for messages (corresponds to the command line option -snd level). For more information about the different message categories - see chapter Message-Diagnose.
Note that calling setSndLevel() adds the manager/message filters to the already active filters. If you do not want to filter messages/managers, do not specify the optional arguments or pass "all" as a filter option.
The function setSndLevel() sets the send level to 3 and getSndLevel() returns it.
main()
{
int i;
i = setSndLevel(3);
int retLevel = getSndLevel();
DebugN("The set level:", retLevel);
}
Assignment
Availability
CTRL