add new function of logger