Support logging any object (Fixes #23)