add the log output to the destructor

use the log level 1