[wsf-c-dev] [jira] Resolved: (WSFPHP-260) Expose axis2_log_*
functions for use in php scripts
Dimuthu Gamage (JIRA)
jira at wso2.org
Sun Apr 6 03:31:17 PDT 2008
[ https://wso2.org/jira/browse/WSFPHP-260?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dimuthu Gamage resolved WSFPHP-260.
-----------------------------------
Resolution: Fixed
Added.
We used the prefix "[WSF/PHP] " for the logs from this function. The prefix is defined in the wsf_common.h
#define WS_PHP_LOG_PREFIX "[WSF/PHP] "
> Expose axis2_log_* functions for use in php scripts
> ---------------------------------------------------
>
> Key: WSFPHP-260
> URL: https://wso2.org/jira/browse/WSFPHP-260
> Project: WSO2 WSF/PHP
> Issue Type: New Feature
> Environment: windows + linux
> Reporter: Dimuthu Gamage
> Assignee: Dimuthu Gamage
>
> The idea is to log the messages from the php scripts to the wsf/php log files, i.e. wsf_php_client.log and wsf_php_server.log, so that users can go through only their relevant log file and debug the issue.
> The suggested API is,
> ws_log_write(string file, string line, string level, string buffer)
> So in the script we can use following line to log an error
> ws_log_write(__FILE__, __LINE__, WSF_LOG_ERROR, "this is test log");
> I defined the error constants from the PHP itself similar to this
> // log level definition
> define(WSF_LOG_CRITICAL, 0);
> define(WSF_LOG_ERROR, 1);
> define(WSF_LOG_WARNING, 2);
> define(WSF_LOG_INFO, 3);
> define(WSF_LOG_DEBUG, 4);
> define(WSF_LOG_USER, 5);
> define(WSF_LOG_TRACE, 6);
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the Wsf-c-dev
mailing list