Ransomware attackers specifically target and attempt to destroy backup systems to increase the probability of payment. Hardening your system is critical. Please ensure you have reviewed your platform security using the Security Hardening Checklist
Cohesity

COHESITY Documentation

Explore our documentation to get started, discover products & new features, access troubleshooting guides, register sources, platforms support.

Products
Data Security Alliance
Visit Cohesity.com
Demos
Support
Blogs
Developers
Partner Portals
Cohesity Community
© 2026 Cohesity, Inc. All Rights Reserved.
Terms of Use|
Privacy Policy|
Legal|
  1. Home
  2. Veritas NetBackup™ DataStore SDK Programmer's Guide for XBSA 1.1.0
  3. API reference
  4. Function specifications
  5. NBBSALogMsg
Veritas NetBackup™ DataStore SDK Programmer's Guide for XBSA 1.1.0

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.

Feedback

Was this page helpful?
Previous

NBBSAGetServerError

Next

NBBSASetEnv

Feedback

Was this page helpful?