CsvRequestLogger
Assembly: ServiceStack.dll
View Source
Declaration
public class CsvRequestLogger : InMemoryRollingRequestLogger, IRequestLogger
Properties
OnWriteLogsError
View Source
Declaration
public Action<List<RequestLogEntry>, Exception> OnWriteLogsError { get; set; }
OnReadLastEntryError
View Source
Declaration
public Action<string, Exception> OnReadLastEntryError { get; set; }
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
OnFlush(Object)
View Source
Declaration
protected virtual void OnFlush(object state)
Parameters
Type | Name |
---|---|
System.Object | state |
GetLogFilePath(String, DateTime)
View Source
Declaration
public string GetLogFilePath(string logFilePattern, DateTime forDate)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | logFilePattern |
System.DateTime | forDate |
WriteLogs(List<RequestLogEntry>, String)
View Source
Declaration
public virtual void WriteLogs(List<RequestLogEntry> logs, string logFile)
Parameters
Type | Name |
---|---|
System.Collections.Generic.List<ServiceStack.RequestLogEntry> | logs |
System.String | logFile |
Log(IRequest, Object, Object, TimeSpan)
View Source
Declaration
public override 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 |
GetLatestLogs(Nullable<Int32>)
View Source
Declaration
public override List<RequestLogEntry> GetLatestLogs(int? take)
Returns
System.Collections.Generic.List<ServiceStack.RequestLogEntry>
Parameters
Type | Name |
---|---|
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
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 |
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 |
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 |
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 |
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 |
ToSerializableErrorResponse(Object)
View Source
Declaration
public static object ToSerializableErrorResponse(object response)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.Object | response |