Copied to clipboard

Flag this post as spam?

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


  • Marshall Bell 19 posts 59 karma points
    Aug 20, 2009 @ 14:26
    Marshall Bell
    0

    Umbraco v4 Application Logging

    Hello,

    I've been trying to find information regarding Umbraco and logging of debug/warn/error messages and have come up short.  I noticed that there is a <logging> node defined in the umbracoSettings.config but it doesn't appear to offer much in the way of options.

    My main question is, what configuration options do I have with regard to logging warning & error messages?  I'm very familiar with log4net and we typically utilize a rolling file appendar as well as the SMTP appender so we can be a little pro-active when issues arise.

    Thanks for the assistance!

    Marshall

  • Thomas Höhler 1237 posts 1709 karma points MVP
    Aug 20, 2009 @ 14:30
    Thomas Höhler
    101

    The build in umbraco logging logs against the database (see the umbracoLog table). In the config you can define which logging types (error, debug, etc) will be logged or not, eg:

      <logging>
    <enableLogging>true</enableLogging>
    <enableAsyncLogging>true</enableAsyncLogging>
    <disabledLogTypes>
    <logTypeAlias>debug</logTypeAlias>
    </disabledLogTypes>
    </logging>

    if you don't want the debug messages.

    hth,
    Thomas

  • Thomas Höhler 1237 posts 1709 karma points MVP
    Aug 20, 2009 @ 14:31
    Thomas Höhler
    0

    If you want to use log4net see Ismails blog post: http://ismailmayat.wordpress.com/2009/05/19/integrating-log4net-into-umbraco-site/

    Thomas

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Aug 20, 2009 @ 15:05
    Aaron Powell
    0

    Hey Thomas, can you put that on the wiki somewhere, I didn't know that existed I thought it was all on or all off.

    I expect that we'll use log4net in v5 though.

  • Thomas Höhler 1237 posts 1709 karma points MVP
    Aug 20, 2009 @ 15:12
    Thomas Höhler
    0

    I will do it the next days

Please Sign in or register to post replies

Write your reply to:

Draft