C# Class LoggenCSG.Generator

Inheritance: Core.Generator, IDisposable
Show file Open project: artzub/LoggenCSG

Protected Properties

Property Type Description
Logout string
haveStater bool
loggers Appender>.Dictionary
users bool>.Dictionary

Private Properties

Property Type Description
InitLogfile void
MakeRule string
ReplaceForLog string

Public Methods

Method Description
Dispose ( ) : void
Generator ( Google auth, IStater stater = null ) : System
Generator ( string apiKey, IStater stater = null ) : System
LogGen ( Appender>.Dictionary loggers, Core.Visualizers typelog, string>.Dictionary rules, ActivityCont>.KeyValuePair dicitem ) : void

Protected Methods

Method Description
ApplyPattern ( string pattern, PatternItem item, string prefix = "", string prefixignore = null ) : string
DateString ( string date, DateType type ) : string
ForTitle ( string input, int length = 20 ) : string
GenerateLog ( Core insetting = null ) : object
GenerateLogs ( ActivityCont>.Dictionary data, GeneratorSetting setting, Appender>.Dictionary loggers ) : void
GetActor ( Google actor, Core.Visualizers logType ) : string
GetTypePatternName ( TypePattern type ) : string
InRange ( System.DateTime from, System.DateTime to, string current ) : bool
IsOutLeft ( System.DateTime from, string current ) : bool
IsOutRight ( System.DateTime to, string current ) : bool
ReplacePattern ( PatternOption option ) : string
WriteLog ( Exception e, object sender ) : void
WriteLog ( string message, object sender, bool error = false ) : void
doGenerate ( GeneratorSetting setting, string pid, int depth ) : void

Private Methods

Method Description
InitLogfile ( ) : void
MakeRule ( string name, string prefix = "", string prefixignore = null ) : string
ReplaceForLog ( string p ) : string

Method Details

ApplyPattern() protected static method

protected static ApplyPattern ( string pattern, PatternItem item, string prefix = "", string prefixignore = null ) : string
pattern string
item PatternItem
prefix string
prefixignore string
return string

DateString() protected static method

protected static DateString ( string date, DateType type ) : string
date string
type DateType
return string

Dispose() public method

public Dispose ( ) : void
return void

ForTitle() protected static method

protected static ForTitle ( string input, int length = 20 ) : string
input string
length int
return string

GenerateLog() protected method

protected GenerateLog ( Core insetting = null ) : object
insetting Core
return object

GenerateLogs() protected method

protected GenerateLogs ( ActivityCont>.Dictionary data, GeneratorSetting setting, Appender>.Dictionary loggers ) : void
data ActivityCont>.Dictionary
setting GeneratorSetting
loggers Appender>.Dictionary
return void

Generator() public method

public Generator ( Google auth, IStater stater = null ) : System
auth Google
stater IStater
return System

Generator() public method

public Generator ( string apiKey, IStater stater = null ) : System
apiKey string
stater IStater
return System

GetActor() protected static method

protected static GetActor ( Google actor, Core.Visualizers logType ) : string
actor Google
logType Core.Visualizers
return string

GetTypePatternName() protected static method

protected static GetTypePatternName ( TypePattern type ) : string
type TypePattern
return string

InRange() protected method

protected InRange ( System.DateTime from, System.DateTime to, string current ) : bool
from System.DateTime
to System.DateTime
current string
return bool

IsOutLeft() protected method

protected IsOutLeft ( System.DateTime from, string current ) : bool
from System.DateTime
current string
return bool

IsOutRight() protected method

protected IsOutRight ( System.DateTime to, string current ) : bool
to System.DateTime
current string
return bool

LogGen() public static method

public static LogGen ( Appender>.Dictionary loggers, Core.Visualizers typelog, string>.Dictionary rules, ActivityCont>.KeyValuePair dicitem ) : void
loggers Appender>.Dictionary
typelog Core.Visualizers
rules string>.Dictionary
dicitem ActivityCont>.KeyValuePair
return void

ReplacePattern() protected static method

protected static ReplacePattern ( PatternOption option ) : string
option PatternOption
return string

WriteLog() protected static method

protected static WriteLog ( Exception e, object sender ) : void
e System.Exception
sender object
return void

WriteLog() protected static method

protected static WriteLog ( string message, object sender, bool error = false ) : void
message string
sender object
error bool
return void

doGenerate() protected method

protected doGenerate ( GeneratorSetting setting, string pid, int depth ) : void
setting GeneratorSetting
pid string
depth int
return void

Property Details

Logout protected static property

protected static string Logout
return string

haveStater protected property

protected bool haveStater
return bool

loggers protected property

protected Dictionary loggers
return Appender>.Dictionary

users protected property

protected Dictionary users
return bool>.Dictionary