optimize winston logger.