private string ProcessLogExtra(Payload.LogMessage log) { StringBuilder environmentInformation = new StringBuilder(); if (log.Extra != null) { foreach (var extraInfo in log.Extra) { environmentInformation.Append(Environment.NewLine + extraInfo.Key + ": " + extraInfo.Value); } } return(environmentInformation.ToString()); }
private void WriteToGeneralLog(Payload.LogMessage log, DateTime instant, string sessionId, int espaceId, int tenantId, int userId) { string messageType = allowedMessageTypes.FirstOrDefault(allowedType => allowedType.EqualsIgnoreCase(log.Message_Type)) ?? "USER"; GeneralLog.StaticWrite(instant, sessionId, espaceId, tenantId, userId, log.Message, messageType, log.Module_Name, ""); }