use logging module in stochastic