Skip to main content

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
TypeName
System.Objectstate

GetLogFilePath(String, DateTime)

View Source
Declaration
public string GetLogFilePath(string logFilePattern, DateTime forDate)
Returns

System.String

Parameters
TypeName
System.StringlogFilePattern
System.DateTimeforDate

WriteLogs(List<RequestLogEntry>, String)

View Source
Declaration
public virtual void WriteLogs(List<RequestLogEntry> logs, string logFile)
Parameters
TypeName
System.Collections.Generic.List<ServiceStack.RequestLogEntry>logs
System.StringlogFile

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
System.TimeSpanrequestDuration

GetLatestLogs(Nullable<Int32>)

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

System.Collections.Generic.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