Logging
Use the APIs in this category to log a message or reset the log levels.
Description: This interface is used to reset the logger to another user defined log level.
When you run the new interface, the log level is set to Info. Use the reset_log interface to change the log level to any one of the following:
error
debug
warning
critical
trace
Is mandatory: No
Input parameter: String: log level
Return value: 0 if successful and the log level is reset to the new value, else any positive number.
Example:
$appObj->reset_log("debug");Description: This interface is used to log messages into a log file.
If either of the log level or log message is empty, then the log message is not logged into the log file.
If you specify an invalid log level, that is anything other than error, debug, info, warning, critical, trace, then all such logs are logged with the log level as error.
The location of the log file is as below:
Linux:
/var/opt/VRTSsfmh/APP/log/APP_TYPE.log
Is mandatory: No
Input parameter: String: Log level such as error, debug, warning, critical, or trace, and the log message
Return value: NA
Example:
$appObj->log("error","test message....");