public void Log(ReceiveMessage message) { string fileName = DateTime.Now.ToString("yyyyMMdd_hhmmss_ffff", ObjectUtil.SysCulture) + ".xml"; string content = message.WriteXml(); FileUtil.SaveFile(Path.Combine(BasePath, fileName), content, Encoding.UTF8); }