axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ruwan Janapriya" <janapr...@wso2.com>
Subject Re: More readable LOG Macros.
Date Sun, 04 May 2008 05:44:04 GMT
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


thanks,

Janapriya


On Wed, Apr 30, 2008 at 4:54 PM, Dinesh Premalal <xydinesh@gmail.com> wrote:

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

Mime
View raw message