axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ishan De Silva <>
Subject Suggestions to improve the logs
Date Tue, 24 Oct 2006 06:50:41 GMT

When using the server side log (axis2.log) to debug multiple services 
and/or multi-threaded services, it is difficult to differentiate between 
log entries made by different services/threads.

How about printing the service name and a thread id in each log entry?

Then a log entry would look like:

[<time stamp>] [<svc name>] [<thread id>] [<level string>] ...


[Tue Oct 24 11:28:50 2006] [echo] [A] [info] Request served in ...

A possible implementation for "thread id" could be a simple char kept in 
the env struct. The first env is given the letter A. Thereafter, in each 
axis2_init_thread_env() call, the child threads could be given ids 
starting from B.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message