InMemoryRollingRequestLogger
Assembly: ServiceStack.dll
View Source
Declaration
public class InMemoryRollingRequestLogger : IRequestLogger
Properties
EnableSessionTracking
View Source
Declaration
public bool EnableSessionTracking { get; set; }
EnableRequestBodyTracking
View Source
Declaration
public bool EnableRequestBodyTracking { get; set; }
RequestBodyTrackingFilter
View Source
Declaration
public Func<IRequest, bool> RequestBodyTrackingFilter { get; set; }
EnableResponseTracking
View Source
Declaration
public bool EnableResponseTracking { get; set; }
ResponseTrackingFilter
View Source
Declaration
public Func<IRequest, bool> ResponseTrackingFilter { get; set; }
EnableErrorTracking
View Source
Declaration
public bool EnableErrorTracking { get; set; }
LimitToServiceRequests
View Source
Declaration
public bool LimitToServiceRequests { get; set; }
RequiredRoles
View Source
Declaration
public string[] RequiredRoles { get; set; }
SkipLogging
View Source
Declaration
public Func<IRequest, bool> SkipLogging { get; set; }
ExcludeRequestDtoTypes
View Source
Declaration
public Type[] ExcludeRequestDtoTypes { get; set; }
HideRequestBodyForRequestDtoTypes
View Source
Declaration
public Type[] HideRequestBodyForRequestDtoTypes { get; set; }
ExcludeResponseTypes
View Source
Declaration
public Type[] ExcludeResponseTypes { get; set; }
RequestLogFilter
View Source
Declaration
public Action<IRequest, RequestLogEntry> RequestLogFilter { get; set; }
IgnoreFilter
View Source
Declaration
public Func<object, bool> IgnoreFilter { get; set; }
CurrentDateFn
View Source
Declaration
public Func<DateTime> CurrentDateFn { get; set; }
Fields
DefaultCapacity
View Source
Declaration
public const int DefaultCapacity = 1000
logEntries
View Source
Declaration
protected readonly ConcurrentQueue<RequestLogEntry> logEntries
capacity
View Source
Declaration
protected readonly int capacity
Methods
ShouldSkip(IRequest, Object)
View Source
Declaration
public virtual bool ShouldSkip(IRequest req, object requestDto)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
System.Object | requestDto |
Log(IRequest, Object, Object, TimeSpan)
View Source
Declaration
public virtual void Log(IRequest request, object requestDto, object response, TimeSpan requestDuration)
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | request |
System.Object | requestDto |
System.Object | response |
System.TimeSpan | requestDuration |
CreateEntry(IRequest, Object, Object, TimeSpan, Type)
View Source
Declaration
protected RequestLogEntry CreateEntry(IRequest request, object requestDto, object response, TimeSpan requestDuration, Type requestType)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | request |
System.Object | requestDto |
System.Object | response |
System.TimeSpan | requestDuration |
System.Type | requestType |
ExcludeRequestType(Type)
View Source
Declaration
protected bool ExcludeRequestType(Type requestType)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Type | requestType |
SerializableItems(Dictionary<String, Object>)
View Source
Declaration
public Dictionary<string, string> SerializableItems(Dictionary<string, object> items)
Returns
System.Collections.Generic.Dictionary<System.String,System.String>
Parameters
Type | Name |
---|---|
System.Collections.Generic.Dictionary<System.String,System.Object> | items |
GetLatestLogs(Nullable<Int32>)
View Source
Declaration
public virtual List<RequestLogEntry> GetLatestLogs(int? take)
Returns
System.Collections.Generic.List<ServiceStack.RequestLogEntry>
Parameters
Type | Name |
---|---|
System.Nullable<System.Int32> | take |
ToSerializableErrorResponse(Object)
View Source
Declaration
public static object ToSerializableErrorResponse(object response)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.Object | response |