Make the logging system of codelite more generic