a simple logging Mechanism of DSTM2