add writing log option
change log output destination