Logging on serialization.