NetLogger is a methodology and set of software tools for debugging and performance analysis of complex distributed applications.
The NetLogger Toolkit is a comprehensive set of APIs and Python tools:
The following is an excerpt from the Logging Best Practices document:
Real-time status outputs from running software, or logs, are instrumental to performance analysis, problem diagnosis, and security auditing tasks such as incident tracing and damage assessment. Too often, though, logs are only useful to the author of the program, poorly structured, or missing important information. The solution to this should be obvious: logs need to be well-structured and complete. If we apply the same discipline and consistency to logging as we apply to coding standards, logs can be readily useful to the wider community of administrators, users, middleware developers -- and the log-consuming programs that all these people create.
....read the entire document here