C# Class WebAnalytics.DataLayer.LogParser

Inheritance: IDisposable
ファイルを表示 Open project: projectkudu/IISLogAnalyzerSiteExtension Class Usage Examples

Private Properties

Property Type Description
CheckGrammer bool
FindFields void
LineHas bool
SetFields void

Public Methods

Method Description
Dispose ( ) : void
ParseW3CFormat ( ) : IEnumerable
StripFields ( string unformattedFields ) : void

Given a string where `#Fields` is the beginning, strip out all the fields that W3C format uses for logs

setTimes ( System.DateTime start, System.DateTime end ) : void

To shorten the parse and quicken the speed, provide the times the user is interested in. So that it will not have to parse raw data that at the higher level the user will not be using

Private Methods

Method Description
CheckGrammer ( string data, string operation ) : bool
FindFields ( ) : void
LineHas ( string line ) : bool
SetFields ( ) : void

Set the fields for the specific log format that we are dealing with, by default this uses the W3C Extended format. On version 2 or later versions, other log formats will be implemented.

Method Details

Dispose() public method

public Dispose ( ) : void
return void

ParseW3CFormat() public method

public ParseW3CFormat ( ) : IEnumerable
return IEnumerable

StripFields() public method

Given a string where `#Fields` is the beginning, strip out all the fields that W3C format uses for logs
public StripFields ( string unformattedFields ) : void
unformattedFields string
return void

setTimes() public method

To shorten the parse and quicken the speed, provide the times the user is interested in. So that it will not have to parse raw data that at the higher level the user will not be using
public setTimes ( System.DateTime start, System.DateTime end ) : void
start System.DateTime
end System.DateTime
return void