![]() |
< Previous | Next > |
Product: Cluster Server Guides | |
Manual: Cluster Server 4.1 Agent Developer's Guide |
Agent Application Logging Macros for C++ Entry PointsThe macro VCSAG_LOG_MSG can be used within C++ agent entry points to log all messages ranging in severity from CRITICAL to INFORMATION to the agent log file. The VCSAG_CONSOLE_LOG_MSG macro can be used to send messages to the engine log, and, in the case of messages of CRITICAL and ERROR severity, to the console. The argument fields for the application logging macros are described in the following table:
In the following example, both macros are used to log an error message to the agent log and to the console: . . VCSAG_LOG_MSG(VCS_ERROR, 14002, VCS_DEFAULT_FLAGS, "Resource could not be brought down because the attempt to remove the file(%s) failed with error(%d)", CHAR *)(*attr_val), errno); VCSAG_CONSOLE_LOG_MSG(VCS_ERROR, 14002, VCS_DEFAULT_FLAGS, "Resource could not be brought down because, the attempt to remove the file(%s) failed with error(%d)", (CHAR *)(*attr_val), errno); |
^ Return to Top | < Previous | Next > |
Product: Cluster Server Guides | |
Manual: Cluster Server 4.1 Agent Developer's Guide | |
VERITAS Software Corporation
www.veritas.com |