protected override void OnWrite(int severity, string text) { DateTimeOffset dtoNow = DateTimeOffset.Now; var props = new NamedValueSet(); props.Set("Severity", severity); var data = new DebugLogEvent { Created = dtoNow.ToString("o"), Message = text, ProcessId = ProcessId, SeqNumber = Interlocked.Increment(ref _seqNumber), Severity = severity, ApplName = _client.ClientInfo.ApplName, HostName = _client.ClientInfo.HostName, UserName = _client.ClientInfo.UserName, OrigEnv = EnvHelper.EnvName(_client.ClientInfo.ConfigEnv) }; _client.SaveDebug(data, data.ItemName, props); }