RequestLogsFeature
Assembly: ServiceStack.dll
View Source
public class RequestLogsFeature : IPlugin, IHasStringId, IHasId<string>, IPreInitPlugin
Properties
Id
View Source
public string Id { get; set; }
AtRestPath
RequestLogs service Route, default is /requestlogs
View Source
public string AtRestPath { get; set; }
EnableSessionTracking
Turn On/Off Session Tracking
View Source
public bool EnableSessionTracking { get; set; }
EnableRequestBodyTracking
Turn On/Off Logging of Raw Request Body, default is Off
View Source
public bool EnableRequestBodyTracking { get; set; }
RequestBodyTrackingFilter
Turn On/Off Raw Request Body Tracking per-request
View Source
public Func<IRequest, bool> RequestBodyTrackingFilter { get; set; }
EnableResponseTracking
Turn On/Off Tracking of Responses
View Source
public bool EnableResponseTracking { get; set; }
ResponseTrackingFilter
Turn On/Off Tracking of Responses per-request
View Source
public Func<IRequest, bool> ResponseTrackingFilter { get; set; }
EnableErrorTracking
Turn On/Off Tracking of Exceptions
View Source
public bool EnableErrorTracking { get; set; }
SkipLogging
Don't log matching requests
View Source
public Func<IRequest, bool> SkipLogging { get; set; }
Capacity
Size of InMemoryRollingRequestLogger circular buffer
View Source
public int? Capacity { get; set; }
RequiredRoles
Limit access to /requestlogs service to these roles
View Source
[Obsolete("Use AccessRole")]
public string[] RequiredRoles { get; set; }
AccessRole
Limit API access to users in role
View Source
public string AccessRole { get; set; }
RequestLogger
Change the RequestLogger provider. Default is InMemoryRollingRequestLogger
View Source
public IRequestLogger RequestLogger { get; set; }
ExcludeRequestDtoTypes
Don't log requests of these types. By default RequestLog's are excluded
View Source
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
public Type[] HideRequestBodyForRequestDtoTypes { get; set; }
ExcludeResponseTypes
Don't log Response DTO Types
View Source
public Type[] ExcludeResponseTypes { get; set; }
LimitToServiceRequests
Limit logging to only Service Requests
View Source
public bool LimitToServiceRequests { get; set; }
RequestLogFilter
Customize Request Log Entry
View Source
public Action<IRequest, RequestLogEntry> RequestLogFilter { get; set; }
IgnoreTypes
Ignore logging and serializing these Request DTOs
View Source
public List<Type> IgnoreTypes { get; set; }
IgnoreFilter
Use custom Ignore Request DTO predicate
View Source
public Func<object, bool> IgnoreFilter { get; set; }
CurrentDateFn
Change what DateTime to use for the current Date (defaults to UtcNow)
View Source
public Func<DateTime> CurrentDateFn { get; set; }
DefaultLimit
Default take, if none is specified
View Source
public int DefaultLimit { get; set; }
Methods
DefaultIgnoreFilter(Object)
View Source
public bool DefaultIgnoreFilter(object o)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Object | o |
Register(IAppHost)
View Source
public void Register(IAppHost appHost)
Parameters
Type | Name |
---|---|
ServiceStack.IAppHost | appHost |
BeforePluginsLoaded(IAppHost)
View Source
public void BeforePluginsLoaded(IAppHost appHost)
Parameters
Type | Name |
---|---|
ServiceStack.IAppHost | appHost |