forked from ServiceStack/ServiceStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRequestLogEntry.cs
More file actions
43 lines (41 loc) · 1.65 KB
/
RequestLogEntry.cs
File metadata and controls
43 lines (41 loc) · 1.65 KB
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
42
43
//Copyright (c) ServiceStack, Inc. All Rights Reserved.
//License: https://raw.github.com/ServiceStack/ServiceStack/master/license.txt
using System;
using System.Collections;
using System.Collections.Generic;
using ServiceStack.DataAnnotations;
namespace ServiceStack
{
/// <summary>
/// A log entry added by the IRequestLogger
/// </summary>
public class RequestLogEntry : IMeta
{
[AutoIncrement]
public long Id { get; set; }
public DateTime DateTime { get; set; }
public int StatusCode { get; set; }
public string StatusDescription { get; set; }
public string HttpMethod { get; set; }
public string AbsoluteUri { get; set; }
public string PathInfo { get; set; }
[StringLength(StringLengthAttribute.MaxText)]
public string RequestBody { get; set; }
public object RequestDto { get; set; }
public string UserAuthId { get; set; }
public string SessionId { get; set; }
public string IpAddress { get; set; }
public string ForwardedFor { get; set; }
public string Referer { get; set; }
public Dictionary<string, string> Headers { get; set; }
public Dictionary<string, string> FormData { get; set; }
public Dictionary<string, string> Items { get; set; }
public object Session { get; set; }
public object ResponseDto { get; set; }
public object ErrorResponse { get; set; }
public string ExceptionSource { get; set; }
public IDictionary ExceptionData { get; set; }
public TimeSpan RequestDuration { get; set; }
public Dictionary<string, string> Meta { get; set; }
}
}