Class EmailLogListener
- Namespace
- StockSharp.Logging
- Assembly
- StockSharp.Logging.dll
The logger sending data to the email.
public class EmailLogListener : LogListener, ILogListener, IPersistable, IDisposable
- Inheritance
-
EmailLogListener
- Implements
-
IPersistable
- Derived
- Inherited Members
- Extension Methods
Constructors
EmailLogListener()
Initializes a new instance of the EmailLogListener.
public EmailLogListener()
Properties
From
The address, on whose behalf the message will be sent.
public virtual string From { get; set; }
Property Value
To
The address to which the message will be sent to.
public virtual string To { get; set; }
Property Value
Methods
CreateClient()
To create the email client.
protected virtual SmtpClient CreateClient()
Returns
- SmtpClient
The email client.
DisposeManaged()
Release resources.
protected override void DisposeManaged()
GetSubject(LogMessage)
To create a header.
protected virtual string GetSubject(LogMessage message)
Parameters
message
LogMessageA debug message.
Returns
- string
Header.
Load(SettingsStorage)
Load settings.
public override void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
OnWriteMessage(LogMessage)
To record a message.
protected override void OnWriteMessage(LogMessage message)
Parameters
message
LogMessageA debug message.
Save(SettingsStorage)
Save settings.
public override void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.