title: Modify loggingConfiguration Programmatic (enterprise library)
body: <p>I have app.config in m win application, and loggingConfiguration  section (enterprise library 4.1).</p>
  
  <p>I need do this programatically,</p>
  
  <p>Get a list of all listener in loggingConfiguration  </p>
  
  <p>Modify property fileName=".\Trazas\Excepciones.log" of several RollingFlatFileTraceListener's</p>
  
  <p>Modify several properties of AuthenticatingEmailTraceListener listener,</p>
  
  <p>Any suggestions, I havent found any reference or samples</p>
  
  <p></p>
  
  <pre><code>&lt;listeners&gt;
  
    &lt;add name="Excepciones RollingFile Listener" fileName=".\Trazas\Excepciones.log" 
         formatter="Text Single Formatter" 
         footer="&amp;lt;/Excepcion&amp;gt;" 
         header="&amp;lt;Excepcion&amp;gt;"
         rollFileExistsBehavior="Overwrite" rollInterval="None" rollSizeKB="1500" timeStampPattern="yyyy-MM-dd" 
         listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.RollingFlatFileTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" traceOutputOptions="None" filter="All" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.RollingFlatFileTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /&gt;
  
  
    &lt;add name="AuthEmailTraceListener"
              type="zzzz.Frk.Logging.AuthEmailTraceListener.AuthenticatingEmailTraceListener, zzzz.Frk.Logging.AuthEmailTraceListener"
              listenerDataType="zzzz.Frk.Logging.AuthEmailTraceListener.AuthenticatingEmailTraceListenerData, zzzz.Frk.Logging.AuthEmailTraceListener"
              formatter="Exception Formatter"
              traceOutputOptions="None"
              toAddress="xxxx@gmail.com"
              fromAddress="xxxx@gmail.com"
              subjectLineStarter=" Excepción detectada - "
              subjectLineEnder="incidencias"
              smtpServer="smtp.gmail.com"
              smtpPort="587" 
              authenticate="true"
              username="xxxxxxx@gmail.com"
              password="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
              enableSsl="true"
         /&gt;
  </code></pre>