new demo, for auto-serialization: logger