In Tridion 2011 SP1 templating, we are using Enterprise Library for logging information to a custom log file while publishing.

But unfortunately Tridion uses EntLib 2.0 which is meant for .NET Framework 2.0 and this doesn't support rolling file listener.

As per Microsoft, EntLib 2.0 is a Retired Version.

Is there a way to use latest EntLib versions 5.0?

I know that log4net can be used but I want to use default EntLib logging only.

Please suggest.

  • There probably is a way to load an alternative version of the EntLib with policy files, but that would likely make your entire Tridion system unsupported. Aside from that you'll have to wait for SDL to update them. Be sure to let SDL Customer Support know about your wish for this to happen. May 13 '13 at 11:53
  • @FrankvanPuffelen: Thanks Frank, will raise a request with support team. May 13 '13 at 12:19
  • Just checked the Tridion.ContentManager.Config of a Tridion 2013 server and it still uses version 2.0. There's probably a very good reason why it wasn't updated with 2013.
    – Nuno Linhares
    May 13 '13 at 15:23
  • @NunoLinhares: ohh then what would that good reason behind still using version 2.0? :) May 13 '13 at 18:27
  • If I knew it, I would have shared it... the common reason for Tridion not to upgrade a dependency is because something else breaks if we do. You can always try changing T.CM.Config to use version 5 and see what happens...
    – Nuno Linhares
    May 13 '13 at 18:43

Thanks for your inputs.

Today I finally decided to write my own Rolling Class and which uses internally Entlib 2.0

Steps followed:

  1. Create your own Rolling Class
    • RollingFileTraceListener
    • RollingFileTraceListenerData
  2. Register your DLL into the GAC
  3. Update the configuration with respective to your DLL
  4. Restart the services

Now you will see rolling logs are created.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.