[Xorp-users] regarding debug messages or prints
Ganesh Reddy K
ganeshreddyk at gmail.com
Thu Jul 12 19:54:23 PDT 2012
In libxorp/xlog.c, i have replaced the
const char * default [] = {
"/dev/stderr",
"/dev/console"
"/dev/stdout" };
with .
const char * default [] = {
"/test1",
"/test2"
"/test3" };
In addition to above, in each required source file, i have declared
below macro's
#define DEBUG_LOGGING
#define DEBUG_PRINT_FUNCTION_NAME
Now i am able to see the messages coming into "/test1" file...
Are these changes valid to get the logs into a file ?
Thanks in advance,
Ganesh
On Wed, Jul 11, 2012 at 8:20 PM, Ben Greear <greearb at candelatech.com> wrote:
> On 07/11/2012 07:29 AM, Ganesh Reddy K wrote:
>>,
>> Hi,
>>
>> We are trying to understand the xorp-pimsm4 code flow. To understand,
>> we have added additional XLOG_INFO () statements in the source
>> code. After loading, we could not observe any additional prints/debug
>> messages . Only configuration messages were seen on log-file (which
>> is given in xorp_rtrmgr "-l" argument).
>>
>> Please, somebody guide me how to get the added prints/debug messages
>> visible during packet processing ???
>
>
> Try finding a message that is printed to the log file and edit it...make
> sure
> you see the edits in the output. That way, you at least know
> you are installing your new build correctly, etc.
>
> Thanks,
> Ben
>
>>
>> Thanks in advance,
>> Ganesh
>>
>> _______________________________________________
>> Xorp-users mailing list
>> Xorp-users at xorp.org
>> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users
>>
>
>
> --
> Ben Greear <greearb at candelatech.com>
> Candela Technologies Inc http://www.candelatech.com
>
>
>
More information about the Xorp-users
mailing list