Skip to main content

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
TypeName
ServiceStack.Web.IRequestreq
System.ObjectrequestDto

Log(IRequest, Object, Object, TimeSpan)

View Source
Declaration
public virtual void Log(IRequest request, object requestDto, object response, TimeSpan requestDuration)
Parameters
TypeName
ServiceStack.Web.IRequestrequest
System.ObjectrequestDto
System.Objectresponse
System.TimeSpanrequestDuration

CreateEntry(IRequest, Object, Object, TimeSpan, Type)

View Source
Declaration
protected RequestLogEntry CreateEntry(IRequest request, object requestDto, object response, TimeSpan requestDuration, Type requestType)
Returns

ServiceStack.RequestLogEntry

Parameters
TypeName
ServiceStack.Web.IRequestrequest
System.ObjectrequestDto
System.Objectresponse
System.TimeSpanrequestDuration
System.TyperequestType

ExcludeRequestType(Type)

View Source
Declaration
protected bool ExcludeRequestType(Type requestType)
Returns

System.Boolean

Parameters
TypeName
System.TyperequestType

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
TypeName
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
TypeName
System.Nullable<System.Int32>take

ToSerializableErrorResponse(Object)

View Source
Declaration
public static object ToSerializableErrorResponse(object response)
Returns

System.Object

Parameters
TypeName
System.Objectresponse

Implements