Skip to main content

RequestLogsFeature

Assembly: ServiceStack.dll
View Source
Declaration
public class RequestLogsFeature : IPlugin, IHasStringId, IHasId<string>, IPreInitPlugin

Properties

Id

View Source
Declaration
public string Id { get; set; }

AtRestPath

RequestLogs service Route, default is /requestlogs

View Source
Declaration
public string AtRestPath { get; set; }

EnableSessionTracking

Turn On/Off Session Tracking

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

EnableRequestBodyTracking

Turn On/Off Logging of Raw Request Body, default is Off

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

RequestBodyTrackingFilter

Turn On/Off Raw Request Body Tracking per-request

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

EnableResponseTracking

Turn On/Off Tracking of Responses

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

ResponseTrackingFilter

Turn On/Off Tracking of Responses per-request

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

EnableErrorTracking

Turn On/Off Tracking of Exceptions

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

SkipLogging

Don't log matching requests

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

Capacity

Size of InMemoryRollingRequestLogger circular buffer

View Source
Declaration
public int? Capacity { get; set; }

RequiredRoles

Limit access to /requestlogs service to these roles

View Source
Declaration
[Obsolete("Use AccessRole")]
public string[] RequiredRoles { get; set; }

AccessRole

Limit API access to users in role

View Source
Declaration
public string AccessRole { get; set; }

RequestLogger

Change the RequestLogger provider. Default is InMemoryRollingRequestLogger

View Source
Declaration
public IRequestLogger RequestLogger { get; set; }

ExcludeRequestDtoTypes

Don't log requests of these types. By default RequestLog's are excluded

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

HideRequestBodyForRequestDtoTypes

Don't log request body's for services with sensitive information. By default Auth and Registration requests are hidden.

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

ExcludeResponseTypes

Don't log Response DTO Types

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

LimitToServiceRequests

Limit logging to only Service Requests

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

RequestLogFilter

Customize Request Log Entry

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

IgnoreTypes

Ignore logging and serializing these Request DTOs

View Source
Declaration
public List<Type> IgnoreTypes { get; set; }

IgnoreFilter

Use custom Ignore Request DTO predicate

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

CurrentDateFn

Change what DateTime to use for the current Date (defaults to UtcNow)

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

DefaultLimit

Default take, if none is specified

View Source
Declaration
public int DefaultLimit { get; set; }

Methods

DefaultIgnoreFilter(Object)

View Source
Declaration
public bool DefaultIgnoreFilter(object o)
Returns

System.Boolean

Parameters
TypeName
System.Objecto

Register(IAppHost)

View Source
Declaration
public void Register(IAppHost appHost)
Parameters
TypeName
ServiceStack.IAppHostappHost

BeforePluginsLoaded(IAppHost)

View Source
Declaration
public void BeforePluginsLoaded(IAppHost appHost)
Parameters
TypeName
ServiceStack.IAppHostappHost

Implements