forked from travelrepublic/NLog.Targets.Gelf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGelfMessage.cs
41 lines (30 loc) · 1.05 KB
/
GelfMessage.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using Newtonsoft.Json;
namespace NLog.Targets.Gelf
{
[JsonObject(MemberSerialization.OptIn)]
internal class GelfMessage
{
[JsonProperty("facility")]
public string Facility { get; set; }
[JsonProperty("full_message")]
public string FullMessage { get; set; }
[JsonProperty("request_id")]
public string RequestId { get; set; }
[JsonProperty("host")]
public string Host { get; set; }
[JsonProperty("level")]
public int Level { get; set; }
[JsonProperty("short_message")]
public string ShortMessage { get; set; }
[JsonProperty("_exception_type")]
public string ExceptionType { get; set; }
[JsonProperty("_exception_message")]
public string ExceptionMessage { get; set; }
[JsonProperty("_exception_stack_trace")]
public string StackTrace { get; set; }
[JsonProperty("_logger")]
public string Logger { get; set; }
[JsonProperty("_notes")]
public string Notes { get; set; }
}
}