add new logger code