EmailEncoder uses log4net 1.2.10 and is configured using the normal log4net configuration file.

In EPiServer solutions this is the EPiServerlog.config file

If you want to capture logging for EmailEncoder to a separate file, add the following segment to your log4net configuration file.


 <appender name="EmailEncoderAppender" type="log4net.Appender.RollingFileAppender" >
   <file value="App_Data/emailencoderLog.txt" />
   <rollingStyle value="Date" />
   <datePattern value="yyyyMMdd" />
   <maxSizeRollBackups value="10" />
   <staticLogFileName value="true"/>
   <encoding value="utf-8" />
   <lockingModel type="log4net.Appender.FileAppender+MinimalLock" />
   <appendToFile value="true" />
   <layout type="log4net.Layout.PatternLayout">
     <conversionPattern value="%date %level [%thread][%logger] %type.%method - %message%n" />
 <logger name="EmailEncoder">
   <level value="All" />
   <appender-ref ref="EmailEncoderAppender"/>

Change the location of the logfile if needed and if the logging gets to verbose, change the level to Error.