[ https://issues.apache.org/jira/browse/AXIS2C-1203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Supun Kamburugamuva reassigned AXIS2C-1203: ------------------------------------------- Assignee: Supun Kamburugamuva > 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 > Assignee: Supun Kamburugamuva > 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]