Modularized and implemented winston logging