added option for defining log level and support for level info