axis-c-dev mailing list archives

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

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

e.g.

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

Cheers,
Ishan.

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