Update logger to fix bad use of prototype