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
- Initiating a session
- Backup - creating an object
- Query - finding an object descriptor
- Restore - retrieving an object's data
- Delete - deleting an object or image
- Media IDs - obtaining media IDs
- How to build an XBSA application
- How to run a NetBackup XBSA application
- About 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
Log a message to the XBSA logs.
int NBBSALogMsg(BSA_Handle bsaHandle, int msgType, char *msgBuf, char *callingFunc)
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().
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.
The following return codes are returned by this function:
The function succeeded.