axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Samisa Abeysinghe <sam...@wso2.com>
Subject Re: More readable LOG Macros.
Date Sun, 04 May 2008 07:17:50 GMT
Ruwan Janapriya wrote:
> WDYT on the following?
>
> in axis2,
> #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
or should it be:

[Mon Apr 28 23:22:08 2008] [debug] [Project XYZ] ..\..\src\tiktak.c(246) 
Debug Message Tik Tak Too

?

Samisa...

>
>
> thanks,
>
> Janapriya
>
>
> On Wed, Apr 30, 2008 at 4:54 PM, Dinesh Premalal <xydinesh@gmail.com 
> <mailto:xydinesh@gmail.com>> wrote:
>
>     Samisa Abeysinghe <samisa@wso2.com <mailto:samisa@wso2.com>> writes:
>     > But that does not follow out convention. AXIS2_ is the prefix, and
>     > LOG_ is the name of the struct. So as per our conventions it has to
>     > be, AXIS2_LOG_DEBUG_MSG
>
>     I think AXIS2_LOG_DEBUG_MSG is the correct name for that macro.
>
>     thanks,
>     Dinesh
>     --
>     http://nethu.org
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
>     <mailto:axis-c-dev-unsubscribe@ws.apache.org>
>     For additional commands, e-mail: axis-c-dev-help@ws.apache.org
>     <mailto:axis-c-dev-help@ws.apache.org>
>
>
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG. 
> Version: 7.5.524 / Virus Database: 269.23.8/1413 - Release Date: 5/3/2008 11:22 AM
>   


-- 
Samisa Abeysinghe 
Director, Engineering; WSO2 Inc.

http://www.wso2.com/ - "The Open Source SOA Company"


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