Avoid IE named function bug

http://kangax.github.io/nfe/#jscript-bugs

Setting Logger.prototype within the function doesn't affect the original
returned function.