![]() |
![]() |
The dsmLogEventEx function call logs a user message to the server log file, to the local error log, or to both. This call must be performed while at InSession state inside a session. Do not perform it within a send, get, or query. See Figure 20.
The severity determines the TSM message number. To view messages that are logged on the server, use the query actlog command through the Administrative Client. Use the TSM client option, errorlogretention, to prune the client error log file if the application generates numerous client messages written to the client log (dsmLogType either logLocal or logBoth). Refer to the Tivoli Storage Manager Administrator's Reference for more information.
extern dsInt16_t DSMLINKAGE dsmLogEventEx( dsUint32_t dsmHandle, dsmLogExIn_t *dsmLogExInP, dsmLogExOut_t *dsmLogExOutP );
Parameters
logSevInfo, /* information ANE4990 */ logSevWarning, /* warning ANE4991 */ logSevError, /* Error ANE4992 */ logSevSevere /* severe ANE4993 */
The return code numbers are provided in parentheses ( ).
Table 36. Return Codes for dsmLogEventEx
Return Code | Explanation |
---|---|
DSM_RC_STRING_TOO_LONG (2120) | The message string is too long. |