added logging process