What design pattern can be used for logging? What is commonly used in this type of situation? Any good tutorials?
I am writing a client-server application using C89 and gcc 4.4.4. Now I need to implement some logging function that will display the log messages on the screen, as well as write to a file.
However, I do not want to display all the log messages (warning, error, critical, fatal, debugging, etc.). Perhaps I can set it to display only errors and nothing more. For example, the user may not be interested in debug messages on the screen.
source
share