Added 'depth' parameter to the logger object.