Bugfix in Logger

Some stuff didn't work in Unity, now it compiles