utilize lager API to output console and file log.