You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Dmitry Goncharov (JIRA)" <ji...@apache.org> on 2008/11/10 12:40:46 UTC

[jira] Created: (AXIS2C-1286) Improve the logging facilities to let the client specify their own logging mechanism

Improve the logging facilities to let the client specify their own logging mechanism
------------------------------------------------------------------------------------

                 Key: AXIS2C-1286
                 URL: https://issues.apache.org/jira/browse/AXIS2C-1286
             Project: Axis2-C
          Issue Type: Improvement
          Components: util
    Affects Versions: 1.5.0
            Reporter: Dmitry Goncharov
         Attachments: axis2_log.patch

The current logging mechanism implemented in util/src/log.c makes the client to provide a file for the library to output logging info to.
This mechnism can be improved in such a way the the client can provide their own struct axutil_log_t.
By the means of a custom axutil_log_t the client can make the library do the logging the way the client needs.


-- 
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: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Commented: (AXIS2C-1286) Improve the logging facilities to let the client specify their own logging mechanism

Posted by "Damitha Kumarage (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2C-1286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12646518#action_12646518 ] 

Damitha Kumarage commented on AXIS2C-1286:
------------------------------------------

However my small change to your patch wont' change the idea. If you provide the log structure and implement your own write function then whether critical log message is always written or not is under your control.

> Improve the logging facilities to let the client specify their own logging mechanism
> ------------------------------------------------------------------------------------
>
>                 Key: AXIS2C-1286
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1286
>             Project: Axis2-C
>          Issue Type: Improvement
>          Components: util
>    Affects Versions: 1.5.0
>            Reporter: Dmitry Goncharov
>         Attachments: axis2_log.patch, axis2_log_test.patch
>
>
> The current logging mechanism implemented in util/src/log.c makes the client to provide a file for the library to output logging info to.
> This mechnism can be improved in such a way the the client can provide their own struct axutil_log_t.
> By the means of a custom axutil_log_t the client can make the library do the logging the way the client needs.

-- 
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: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Updated: (AXIS2C-1286) Improve the logging facilities to let the client specify their own logging mechanism

Posted by "Dmitry Goncharov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2C-1286?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitry Goncharov updated AXIS2C-1286:
-------------------------------------

    Attachment: axis2_log_test.patch

This patch creates an echo example which uses the new logging facilities provided by the previous patch.

> Improve the logging facilities to let the client specify their own logging mechanism
> ------------------------------------------------------------------------------------
>
>                 Key: AXIS2C-1286
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1286
>             Project: Axis2-C
>          Issue Type: Improvement
>          Components: util
>    Affects Versions: 1.5.0
>            Reporter: Dmitry Goncharov
>         Attachments: axis2_log.patch, axis2_log_test.patch
>
>
> The current logging mechanism implemented in util/src/log.c makes the client to provide a file for the library to output logging info to.
> This mechnism can be improved in such a way the the client can provide their own struct axutil_log_t.
> By the means of a custom axutil_log_t the client can make the library do the logging the way the client needs.

-- 
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: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Resolved: (AXIS2C-1286) Improve the logging facilities to let the client specify their own logging mechanism

Posted by "Damitha Kumarage (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2C-1286?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Damitha Kumarage resolved AXIS2C-1286.
--------------------------------------

    Resolution: Fixed

Patch applied. Thanks Dmitry for the patch. I have done only small change. That is, write the critical log messages to the log if the log is enabled irrespective of the log level set.

> Improve the logging facilities to let the client specify their own logging mechanism
> ------------------------------------------------------------------------------------
>
>                 Key: AXIS2C-1286
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1286
>             Project: Axis2-C
>          Issue Type: Improvement
>          Components: util
>    Affects Versions: 1.5.0
>            Reporter: Dmitry Goncharov
>         Attachments: axis2_log.patch, axis2_log_test.patch
>
>
> The current logging mechanism implemented in util/src/log.c makes the client to provide a file for the library to output logging info to.
> This mechnism can be improved in such a way the the client can provide their own struct axutil_log_t.
> By the means of a custom axutil_log_t the client can make the library do the logging the way the client needs.

-- 
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: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Commented: (AXIS2C-1286) Improve the logging facilities to let the client specify their own logging mechanism

Posted by "Dmitry Goncharov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2C-1286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12646229#action_12646229 ] 

Dmitry Goncharov commented on AXIS2C-1286:
------------------------------------------

Both patches are for linux

> Improve the logging facilities to let the client specify their own logging mechanism
> ------------------------------------------------------------------------------------
>
>                 Key: AXIS2C-1286
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1286
>             Project: Axis2-C
>          Issue Type: Improvement
>          Components: util
>    Affects Versions: 1.5.0
>            Reporter: Dmitry Goncharov
>         Attachments: axis2_log.patch, axis2_log_test.patch
>
>
> The current logging mechanism implemented in util/src/log.c makes the client to provide a file for the library to output logging info to.
> This mechnism can be improved in such a way the the client can provide their own struct axutil_log_t.
> By the means of a custom axutil_log_t the client can make the library do the logging the way the client needs.

-- 
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: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Updated: (AXIS2C-1286) Improve the logging facilities to let the client specify their own logging mechanism

Posted by "Dmitry Goncharov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2C-1286?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitry Goncharov updated AXIS2C-1286:
-------------------------------------

    Attachment: axis2_log.patch

This patch file patches util/src/log.c in such a way that the client of the library can provide a custom axutil_log_t struct.

> Improve the logging facilities to let the client specify their own logging mechanism
> ------------------------------------------------------------------------------------
>
>                 Key: AXIS2C-1286
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1286
>             Project: Axis2-C
>          Issue Type: Improvement
>          Components: util
>    Affects Versions: 1.5.0
>            Reporter: Dmitry Goncharov
>         Attachments: axis2_log.patch
>
>
> The current logging mechanism implemented in util/src/log.c makes the client to provide a file for the library to output logging info to.
> This mechnism can be improved in such a way the the client can provide their own struct axutil_log_t.
> By the means of a custom axutil_log_t the client can make the library do the logging the way the client needs.

-- 
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: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org