serialize the logging