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 "Olivier Mengué (JIRA)" <ji...@apache.org> on 2010/03/04 19:15:27 UTC

[jira] Created: (AXIS2C-1462) axutil_log_impl_log_user() logs with AXIS2_LOG_LEVEL_DEBUG

axutil_log_impl_log_user() logs with AXIS2_LOG_LEVEL_DEBUG
----------------------------------------------------------

                 Key: AXIS2C-1462
                 URL: https://issues.apache.org/jira/browse/AXIS2C-1462
             Project: Axis2-C
          Issue Type: Bug
          Components: util
    Affects Versions: 1.6.0, Current (Nightly)
            Reporter: Olivier Mengué


When logging with AXIS2_LOG_USER() the logging implementation is called with level AXIS2_LOG_LEVEL_DEBUG.
So the logging implementation can not filter those messages.

The problem lies in axutil_log_impl_log_user() which calls the write() operation with AXIS2_LOG_LEVEL_DEBUG instead of AXIS2_LOG_LEVEL_USER.



AXIS2_EXTERN void AXIS2_CALL
axutil_log_impl_log_user(
    axutil_log_t *log,
    const axis2_char_t *file,
    const int line,
    const axis2_char_t *format,
    ...)
{
    if(log && log->ops && log->ops->write && format && log->enabled)
    {
        if(AXIS2_LOG_LEVEL_DEBUG <= log->level)
        {
            char value[AXIS2_LEN_VALUE + 1];
            va_list ap;
            va_start(ap, format);
            AXIS2_VSNPRINTF(value, AXIS2_LEN_VALUE, format, ap);
            va_end(ap);
            log->ops->write(log, value, AXIS2_LOG_LEVEL_DEBUG, file, line);
        }
    }
#ifndef AXIS2_NO_LOG_FILE
    else
        fprintf(stderr, "please check your log and buffer");
#endif
}


-- 
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


[jira] Closed: (AXIS2C-1462) axutil_log_impl_log_user() logs with AXIS2_LOG_LEVEL_DEBUG

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

nadir amra closed AXIS2C-1462.
------------------------------

    Resolution: Fixed

Fixed in revision http://svn.apache.org/viewvc?view=revision&revision=949659

> axutil_log_impl_log_user() logs with AXIS2_LOG_LEVEL_DEBUG
> ----------------------------------------------------------
>
>                 Key: AXIS2C-1462
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1462
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: util
>    Affects Versions: 1.6.0, Current (Nightly)
>            Reporter: Olivier Mengué
>
> When logging with AXIS2_LOG_USER() the logging implementation is called with level AXIS2_LOG_LEVEL_DEBUG.
> So the logging implementation can not filter those messages.
> The problem lies in axutil_log_impl_log_user() which calls the write() operation with AXIS2_LOG_LEVEL_DEBUG instead of AXIS2_LOG_LEVEL_USER.
> AXIS2_EXTERN void AXIS2_CALL
> axutil_log_impl_log_user(
>     axutil_log_t *log,
>     const axis2_char_t *file,
>     const int line,
>     const axis2_char_t *format,
>     ...)
> {
>     if(log && log->ops && log->ops->write && format && log->enabled)
>     {
>         if(AXIS2_LOG_LEVEL_DEBUG <= log->level)
>         {
>             char value[AXIS2_LEN_VALUE + 1];
>             va_list ap;
>             va_start(ap, format);
>             AXIS2_VSNPRINTF(value, AXIS2_LEN_VALUE, format, ap);
>             va_end(ap);
>             log->ops->write(log, value, AXIS2_LOG_LEVEL_DEBUG, file, line);
>         }
>     }
> #ifndef AXIS2_NO_LOG_FILE
>     else
>         fprintf(stderr, "please check your log and buffer");
> #endif
> }

-- 
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


[jira] Closed: (AXIS2C-1462) axutil_log_impl_log_user() logs with AXIS2_LOG_LEVEL_DEBUG

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

nadir amra closed AXIS2C-1462.
------------------------------

    Resolution: Fixed

Fixed in revision http://svn.apache.org/viewvc?view=revision&revision=949659

> axutil_log_impl_log_user() logs with AXIS2_LOG_LEVEL_DEBUG
> ----------------------------------------------------------
>
>                 Key: AXIS2C-1462
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1462
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: util
>    Affects Versions: 1.6.0, Current (Nightly)
>            Reporter: Olivier Mengué
>
> When logging with AXIS2_LOG_USER() the logging implementation is called with level AXIS2_LOG_LEVEL_DEBUG.
> So the logging implementation can not filter those messages.
> The problem lies in axutil_log_impl_log_user() which calls the write() operation with AXIS2_LOG_LEVEL_DEBUG instead of AXIS2_LOG_LEVEL_USER.
> AXIS2_EXTERN void AXIS2_CALL
> axutil_log_impl_log_user(
>     axutil_log_t *log,
>     const axis2_char_t *file,
>     const int line,
>     const axis2_char_t *format,
>     ...)
> {
>     if(log && log->ops && log->ops->write && format && log->enabled)
>     {
>         if(AXIS2_LOG_LEVEL_DEBUG <= log->level)
>         {
>             char value[AXIS2_LEN_VALUE + 1];
>             va_list ap;
>             va_start(ap, format);
>             AXIS2_VSNPRINTF(value, AXIS2_LEN_VALUE, format, ap);
>             va_end(ap);
>             log->ops->write(log, value, AXIS2_LOG_LEVEL_DEBUG, file, line);
>         }
>     }
> #ifndef AXIS2_NO_LOG_FILE
>     else
>         fprintf(stderr, "please check your log and buffer");
> #endif
> }

-- 
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