Veritas NetBackup™ DataStore SDK Programmer's Guide for XBSA 1.1.0
- Introduction to NetBackup XBSA
- How to set up the SDK
- Using the NetBackup XBSA interface
- NetBackup XBSA data structures
- NetBackup XBSA environment
- XBSA sessions and transactions
- Creating a NetBackup XBSA application
- How to build an XBSA application
- How to run a NetBackup XBSA application
- API reference
- Function calls
- Function specifications
- Type definitions
- Process flow and troubleshooting
- How to use the sample files
- Support and updates
- Appendix A. Register authorized locations
NBBSALogMsg
Log a message to the XBSA logs.
SYNOPSIS
#include <nbbsa.h>
int NBBSALogMsg(BSA_Handle bsaHandle, int msgType, char *msgBuf, char *callingFunc)
DESCRIPTION
NBBSALogMsg() gives the XBSA application the ability to log messages to the same debug log file that is being used by the NetBackup XBSA interface with the log messages being the same format. If used correctly, this can make debugging easier because you can follow the complete flow of the combined XBSA application and XBSA interface.
The log file is opened in BSAInit(), so logging cannot occur until the session has been initiated. The log file is closed in BSATerminate().
PARAMETERS
BSA_Handle bsaHandle (I) | The handle that associates this call with a previous BSAInit() call. |
int msgType (I) | The level of error that is displayed with the timestamp and message. |
char *msgBuf (I) | The text of the error message. |
char *callingFunc (I) | The function name that is calling this function. It is displayed in the log file. |
RETURN VALUE
The following return codes are returned by this function:
BSA_RC_SUCCESS | The function succeeded. |