In this article I will discuss how to utilise the deterministic destruction in C++ in order to create a simple debug log. The purpose of this log will be to show the flow of execution and the values of variables. Before anyone goes of on a rant about how this is not a proper logging framework and how it is not supporting the most commonly found features of other logging framework such as log levels and multiple log destinations, let me reiterate that this is a simple debug log. The intention of this article is to describe a light weight log utility used to provide information useful for debugging, not for application state logging.
For an awesome fully fledged logging framework for C++, I'd suggest you check out this. Read more: Codeproject
For an awesome fully fledged logging framework for C++, I'd suggest you check out this. Read more: Codeproject
0 comments:
Post a Comment