Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jesper Ordrup 1019 posts 1528 karma points MVP
    Jul 25, 2011 @ 22:03
    Jesper Ordrup
    0

    Anyone got Log4net running on Umbraco 4.7.x?


  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Jul 26, 2011 @ 06:40
    Richard Soeteman
    1

    Hi Jesper,

    It's .net so why shouldn't it work? If you want to use it for exception reporting only I would go for ELMAH much easier to setup, just use NUget

    http://nuget.org/List/Packages/elmah

    Cheers,

    Richard

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Jul 26, 2011 @ 07:57
    Dirk De Grave
    1

    Jesper,

    I've got it running on a v4.5.2 install, but shouldn't make a difference...

    in web.config

    <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/>
    And in AssemblyInfo.cs file of each of my assemblies
    [assembly: log4net.Config.XmlConfigurator(ConfigFile="config/log4net.config")]
    You should also be able to set this last info in your web.config
    <log4net configSource="config\log4net.config" />
    Cheers,
    /Dirk

     

  • Jesper Ordrup 1019 posts 1528 karma points MVP
    Jul 26, 2011 @ 10:25
    Jesper Ordrup
    0

    Thanks Dirk & Richard!

    True it's .net but I stumbled on some forum articles that mentioned some trouble getting it to work with earlier versions. I'll give log4net a go.

    Thanks
    Jesper 

     

Please Sign in or register to post replies

Write your reply to:

Draft