Function toLogString

Converts log arguments into a single LogWriterParams.