
alvaro at gnu
Jun 21, 2008, 1:41 AM
Post #1 of 1
(202 views)
Permalink
|
|
contrib/tracelor.py (in trunk)
|
|
Hi there! I suppose that you guys already know about the Cherokee tracing facility; right? If you compile it with --enable-trace, you can use the CHEROKEE_TRACE environment variable (or cherokee-tweak) to trace what is going on inside the server. By default the environment variable contains a list of comma separated words, that point the server which parts and actions are interesting for your trace. Besides, there are a few special cases: - all: Activates all the trace points - time: Prints the time at the beginning of the line - thread: Prints the thread ID And here is where contrib/tracelor.py comes into scene. It is a little script that helps to read the tracing logs by colorizing the thread references and highlighting the words passed through the command line. For instance, the attached image is a capture of the output of: CHEROKEE_TRACE=thread,all ./cherokee | ../contrib/tracelor.py iocache
|