Some improvement of the logging facility