axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ruwan Janapriya (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AXIS2C-1203) More readable LOG Macros.
Date Wed, 25 Jun 2008 14:38:45 GMT

     [ 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

Apply this patch 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


Mime
View raw message