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 "Ruwan Janapriya (JIRA)" <ji...@apache.org> on 2008/06/25 16:34:45 UTC

[jira] Updated: (AXIS2C-1203) More readable LOG Macros.

     [ https://issues.apache.org/jira/browse/AXIS2C-1203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ruwan Janapriya updated AXIS2C-1203:
------------------------------------

    Attachment: readable_macro.patch

Above patch should be applied at /util/include directory.



> More readable LOG Macros.
> -------------------------
>
>                 Key: AXIS2C-1203
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1203
>             Project: Axis2-C
>          Issue Type: Improvement
>         Environment: Any
>            Reporter: Ruwan Janapriya
>         Attachments: readable_macro.patch
>
>
> Current Macros to log are considerably long, so more readable log macros are suggested. Also the suggested approach will have project/module name in one place and each "LOG" call would print that before the message.
> e.g. 
> #define AXIS2_LOG_DEBUG_MSG(log, msg) AXIS2_LOG_DEBUG (log, AXIS2_LOG_SI, "%s %s", AXIS2_LOG_PROJECT_PREFIX, msg)
> in the user project header,
> #ifdef AXIS2_LOG_PROJECT_PREFIX
>   #undef AXIS2_LOG_PROJECT_PREFIX
> #endif
> #define AXIS2_LOG_PROJECT_PREFIX "[Project XYZ]"
> in the user project source,
> AXIS2_LOG_DEBUG_MSG(env->log, "Debug Message Tik Tak Too");
> the expected output would be,
> [Mon Apr 28 23:22:08 2008] [debug] ..\..\src\tiktak.c(246) [Project XYZ] Debug Message Tik Tak Too

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