14 references to Log
System.Net.Mail (14)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.Associate.cs (1)
30
Log
.Associate(IdOf(thisOrContextObject), memberName, IdOf(first), IdOf(second));
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (4)
67
Log
.Info(IdOf(thisOrContextObject), memberName, formattableString != null ? Format(formattableString) : NoParameters);
75
Log
.Info(IdOf(thisOrContextObject), memberName, Format(message));
92
Log
.ErrorMessage(IdOf(thisOrContextObject), memberName, Format(formattableString));
100
Log
.ErrorMessage(IdOf(thisOrContextObject), memberName, Format(message));
System\Net\Mail\MailMessage.cs (2)
41
if (NetEventSource.
Log
.IsEnabled()) NetEventSource.Associate(this, _message);
50
if (NetEventSource.
Log
.IsEnabled()) NetEventSource.Associate(this, _message);
System\Net\Mail\MailPriority.cs (2)
196
if (NetEventSource.
Log
.IsEnabled()) NetEventSource.Associate(this, _headers);
222
if (NetEventSource.
Log
.IsEnabled()) NetEventSource.Associate(this, _envelopeHeaders);
System\Net\Mail\SmtpClient.cs (4)
94
if (NetEventSource.
Log
.IsEnabled()) NetEventSource.Associate(this, _transport);
362
if (NetEventSource.
Log
.IsEnabled()) NetEventSource.Info(this, $"{nameof(pickupDirectory)}={pickupDirectory}");
418
if (NetEventSource.
Log
.IsEnabled())
539
if (NetEventSource.
Log
.IsEnabled()) NetEventSource.Error(this, e);
System\Net\Mail\SmtpTransport.cs (1)
101
if (NetEventSource.
Log
.IsEnabled()) NetEventSource.Associate(this, _connection);