add a file log handler and a console log handler