Moved log level checking from CliLogger into Log class so it can be used by other logging mechanisms