Skip to main content

RedisRequestLogger

Assembly: ServiceStack.Server.dll
View Source
Declaration
public class RedisRequestLogger : InMemoryRollingRequestLogger, IRequestLogger

Inherited Properties

CurrentDateFn

View Source
Declaration
public Func<DateTime> CurrentDateFn { get; set; }

EnableErrorTracking

View Source
Declaration
public bool EnableErrorTracking { get; set; }

EnableRequestBodyTracking

View Source
Declaration
public bool EnableRequestBodyTracking { get; set; }

EnableResponseTracking

View Source
Declaration
public bool EnableResponseTracking { get; set; }

EnableSessionTracking

View Source
Declaration
public bool EnableSessionTracking { get; set; }

ExcludeRequestDtoTypes

View Source
Declaration
public Type[] ExcludeRequestDtoTypes { get; set; }

ExcludeResponseTypes

View Source
Declaration
public Type[] ExcludeResponseTypes { get; set; }

HideRequestBodyForRequestDtoTypes

View Source
Declaration
public Type[] HideRequestBodyForRequestDtoTypes { get; set; }

IgnoreFilter

View Source
Declaration
public Func<object, bool> IgnoreFilter { get; set; }

LimitToServiceRequests

View Source
Declaration
public bool LimitToServiceRequests { get; set; }

RequestBodyTrackingFilter

View Source
Declaration
public Func<IRequest, bool> RequestBodyTrackingFilter { get; set; }

RequestLogFilter

View Source
Declaration
public Action<IRequest, RequestLogEntry> RequestLogFilter { get; set; }

RequiredRoles

View Source
Declaration
public string[] RequiredRoles { get; set; }

ResponseTrackingFilter

View Source
Declaration
public Func<IRequest, bool> ResponseTrackingFilter { get; set; }

SkipLogging

View Source
Declaration
public Func<IRequest, bool> SkipLogging { get; set; }

Methods

Log(IRequest, Object, Object, TimeSpan)

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

GetLatestLogs(Nullable<Int32>)

View Source
Declaration
public override List<RequestLogEntry> GetLatestLogs(int? take)
Returns

List<ServiceStack.RequestLogEntry>

Parameters
TypeName
System.Nullable<System.Int32>take

Inherited Methods

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

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

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

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

ShouldSkip(IRequest, Object)

View Source
Declaration
public virtual bool ShouldSkip(IRequest req, object requestDto)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.Web.IRequestreq
System.ObjectrequestDto

ToSerializableErrorResponse(Object)

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

System.Object

Parameters
TypeName
System.Objectresponse

Implements