Claims
- 1. A method for increasing debug log performance, comprising:
receiving a message from a client program, wherein the message includes parameters; allocating resources to evaluate the parameters into multiple strings; calling a pre-logging subroutine, wherein the pre-logging subroutine passes each string of the message as a separate parameter to a debug logging system, and determines whether the debug logging system is enabled at a specific logging level; and if the debug logging system is disabled, returning to the client program without allocating additional resources to concatenate and log the message.
- 2. The method of claim 1, wherein if the debug logging system is enabled, further comprising allocating additional resources to concatenate the message.
- 3. The method of claim 2, further comprising:
concatenating the message; and logging the message.
- 4. The method of claim 1, wherein the calling step includes calling a helper method for debug logging.
- 5. The method of claim 1, wherein the calling step includes calling a helper method that processes debug log messages.
- 6. The method of claim 1, wherein the calling step includes passing string messages to the debug logging system.
- 7. The method of claim 1, wherein the calling step includes calling the pre-logging subroutine only if requested by a developer of the client program.
- 8. A logging system application programming interface (API), comprising:
one or more pre-logging subroutines, wherein parameters within a message are evaluated into multiple strings, and wherein the one or more pre-logging subroutines pass each string of the message as a separate parameter to a debug logging system; and a raw logging interface that writes the message to a log, wherein the one or more pre-logging subroutines determine whether the debug logging system is enabled at a specific logging level before allocating resources to concatenate and log the message.
- 9. The logging system API of claim 8, wherein if the debug logging system is disabled, no resources is allocated to concatenate and log the message.
- 10. The logging system API of claim 8, wherein if the debug logging system is enabled, the resources are allocated to concatenate and log the message.
- 11. The logging system API of claim 8, wherein the one or more pre-logging subroutines are helper methods for debug logging.
- 12. The logging system API of claim 8, wherein the one or more pre-logging subroutines process debug log messages.
- 13. The logging system API of claim 8, wherein the message is a string message.
- 14. A computer readable medium providing instructions for increasing debug log performance, the instructions comprising:
receiving a message from a client program, wherein the message includes parameters; allocating resources to evaluate the parameters into multiple strings; calling a pre-logging subroutine, wherein the pre-logging subroutine passes each string of the message as a separate parameter to a debug logging system, and determines whether the debug logging system is enabled at a specific logging level; and if the debug logging system is disabled, returning to the client program without allocating additional resources to concatenate and log the message.
- 15. The computer readable medium of claim 14, wherein if the debug logging system is enabled, further comprising instructions for allocating additional resources to concatenate the message.
- 16. The computer readable medium of claim 15, further comprising instructions for:
concatenating the message; and logging the message.
- 17. The computer readable medium of claim 14, wherein the instructions for calling include instructions for calling a helper method for debug logging.
- 18. The computer readable medium of claim 14, wherein the instructions for calling include instructions for calling a helper method that processes debug log messages.
- 19. The computer readable medium of claim 14, wherein the instructions for calling include instructions for passing string messages to the debug logging system.
- 20. The computer readable medium of claim 14, wherein the instructions for calling include instructions for calling the pre-logging subroutine only if requested by a developer of the debug logging system.
CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] This patent application is related to U.S. Patent Application, entitled “API to Enforce Internationalization,” and filed on the same day herewith.