object logger example