Add marshalling methods to Slogger.