the logging system for c