refactor(logger): Refactor logger.js
refactor(logger): Refactor logger.js

Use class style implement write interface

hackmdio/hackmd,aswathyjacob8/newtest,ironhack/hackmd,PeterDaveHello/hackmd,ironhack/hackmd,hackmdio/hackmd,Rwing/hackmd,PeterDaveHello/hackmd,Yukaii/hackmd,jackycute/HackMD,jackycute/HackMD,Rwing/hackmd,Yukaii/hackmd,jackycute/HackMD,PeterDaveHello/hackmd,aswathyjacob8/newtest,Yukaii/hackmd,hackmdio/hackmd,ironhack/hackmd,aswathyjacob8/newtest,Rwing/hackmd