Fixed small issues with log library and added log level support (different ones for both console and log file)