How to implement a journal?
Am I finding a way to implement a log mechanism that multiple processes write their behavior (mainly for errors and process flow) using C with Linux?
Just open the file to be used for multiprocessing and let fprintf () handle it? Any clever way to implement a parameter / mechanism that controls the log level like error / detail / high or something like that?
Would it be better if you could reference an easy source for this?
Thank.
+3
source to share