axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier Mengué (JIRA) <j...@apache.org>
Subject [jira] Commented: (AXIS2C-1455) More flexibility in the logging subsystem
Date Thu, 04 Mar 2010 14:27:27 GMT

    [ https://issues.apache.org/jira/browse/AXIS2C-1455?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12841284#action_12841284
] 

Olivier Mengué commented on AXIS2C-1455:
----------------------------------------

Also, the file is closed in the axutil_log_impl_free() function which is a private function.
This means that if I override the log_free operation, the log file opened by Axis will not
be closed. As the handle is stored in a private area, I have no way of accessing it to close
it myself.
So the current API has serious flaws and make it unusable for customized logging.

Here is a link to the current code (HEAD):
http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/util/src/log.c?view=markup


So I'm asking to add a 'open log' operation to axutil_log_ops_t and move most of the code
in axutil_log_create() to a private axutil_log_impl_open().

Is there any chance that a patch that does that would be accepted?

> More flexibility in the logging subsystem
> -----------------------------------------
>
>                 Key: AXIS2C-1455
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1455
>             Project: Axis2-C
>          Issue Type: New Feature
>          Components: util
>    Affects Versions: 1.6.0, 1.7.0, Current (Nightly)
>            Reporter: Olivier Mengué
>
> I am integrating Axis2/C in a bigger application that has its own logging system. I would
like to redirect Axis2/C logging operation to that logging system instead of files.
> In 1.6.0, Axis2/C is only able to log to files. Logging to files using the stdlib is
hardcoded in the logging internal structures, and avoiding file opening is not possible.
> It should be possible to completely replace the logging operations, not just "write"
and "free".  The base API should be more abstract, and the file handles should be in the default
logging implementation, not embeded in the base API.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


Mime
View raw message