0 votes

This is my config:

<system.diagnostics>
   <trace autoflush="true"/> 
    <switches> 
        <add name="Mail.dll" value="Verbose"/> 
    </switches> 
    <sources> 
        <source name="Mail.dll"> 
            <listeners> 
                <add name="MailLogFile"/> 
            </listeners> 
        </source> 
    </sources> 
    <sharedListeners> 
        <add 
            name="MailLogFile" 
            type="System.Diagnostics.TextWriterTraceListener" 
            initializeData="mail.log"/> 
    </sharedListeners> 
</system.diagnostics>

But I get no mail.log file in the directory where my executable is running!!

by

1 Answer

0 votes

Please make sure you are using the latest version of Mail.dll, it can be downloaded here:
https://www.limilabs.com/mail/download

Please remember that your application needs to have enough permissions to create and write to the log file you specify.

Please check (subscribe to using +=), if Log.WriteLine event is raised.

You can find all details on how to turn on logging here:
https://www.limilabs.com/blog/logging-in-mail-dll

by (301k points)
...