public event LogNewEntryEventHandler LogNewEntry
Public Event LogNewEntry As LogNewEntryEventHandler
This event is raised only if logging is turned on (Enabled is true).
MailBee raises this event BEFORE adding the entry into the the log. Since many properties of NewEntry object are editable, the developer can change the data MailBee will put into the log or even cancel logging the current entry at all. This may be useful the developer wishes to log only those entires which meet certain criteria.
|Entries added by the developer (through WriteLine(String) method call) do not cause this event to be raised. Thus, it's safe to add user-defined log entries even in the event handler itself. This does not cause endless recursion which would otherwise occur if WriteLine(String) method called in event handler raised this event again.|