C# Class CoreTechs.Logging.Targets.EmailTarget

Inheritance: Target, IConfigurable, IFlushable
Show file Open project: Core-Techs/Logging Class Usage Examples

Public Methods

Method Description
Configure ( System.Xml.Linq.XElement xml ) : void
Dispose ( ) : void
EmailTarget ( ) : System
Flush ( System.LogManager logMgr ) : void
Send ( string subject, string body, System.LogManager logMgr ) : void
SendEntry ( LogEntry entry ) : void
Write ( LogEntry entry ) : void

Private Methods

Method Description
BufferEntry ( LogEntry entry ) : void
GetBody ( LogEntry entry ) : string
GetTempFile ( ) : LogFile
OnIntervalEnding ( object sender, EventArgs eventArgs ) : void
SendBuffer ( System.LogManager logMgr ) : void

Method Details

Configure() public method

public Configure ( System.Xml.Linq.XElement xml ) : void
xml System.Xml.Linq.XElement
return void

Dispose() public method

public Dispose ( ) : void
return void

EmailTarget() public method

public EmailTarget ( ) : System
return System

Flush() public method

public Flush ( System.LogManager logMgr ) : void
logMgr System.LogManager
return void

Send() public method

public Send ( string subject, string body, System.LogManager logMgr ) : void
subject string
body string
logMgr System.LogManager
return void

SendEntry() public method

public SendEntry ( LogEntry entry ) : void
entry LogEntry
return void

Write() public method

public Write ( LogEntry entry ) : void
entry LogEntry
return void