New function to get logger; now also reading logLevel parameter