Check if logger isn't nil
Merge pull request #183 from zewelor/master

Check if logger isn't nil