Update: Support extended logging arguments
This commit is contained in:
@@ -18,6 +18,7 @@ namespace Disco.Services.Logging.Models
|
||||
public int EventTypeId { get; set; }
|
||||
[Required]
|
||||
public DateTime Timestamp { get; set; }
|
||||
[Column(TypeName="ntext"), MaxLength]
|
||||
public string Arguments { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,12 +27,7 @@ namespace Disco.Services.Logging.Models
|
||||
object[] Arguments = null;
|
||||
if (jsonArguments != null)
|
||||
{
|
||||
//var alArguments = fastJSON.JSON.Instance.Parse(jsonArguments) as ArrayList; // Old fastJSON Implementation
|
||||
Arguments = JsonConvert.DeserializeObject<object[]>(jsonArguments);
|
||||
//if (alArguments != null)
|
||||
//{
|
||||
// Arguments = alArguments.ToArray();
|
||||
//}
|
||||
}
|
||||
return Create(logModule, eventType, Timestamp, Arguments);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user