give Logger proto a toString and a toJSON method