Introduce LogLevel type, and define a special LogHandler for pc which use the standard printf