Copied to clipboard

Flag this post as spam?

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


  • Mark Olbert 87 posts 117 karma points
    Oct 30, 2009 @ 02:52
    Mark Olbert
    0

    Writing Custom Trace Information

    Is their an API call for writing custom trace information to the Umbraco Trace log?

    - Mark

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Oct 30, 2009 @ 08:31
    Richard Soeteman
    1

    Do you mean the log table ?If so use

    Log

     

    .Add(LogTypes.Custom, nodeId, "Message");

     

     Otherwise you could probably use the normal Trace.Write("Message");

    Hope it helps you,

    Richard

  • Mark Olbert 87 posts 117 karma points
    Oct 30, 2009 @ 15:52
    Mark Olbert
    0

    Hmm, what's the log table? It may be what I'm looking for.

    I did try using Trace.Write, but none of the output ended up displaying so I presumed Umbraco was doing something subtle behind the scenes.

    - Mark

  • Petr Snobelt 923 posts 1535 karma points
    Oct 30, 2009 @ 16:09
    Petr Snobelt
    0

    You must add ?umbDebugShowTrace=true at end of your request to see trace message.
    http://umbraco.org/documentation/books/debugging

    Petr

  • Mark Olbert 87 posts 117 karma points
    Oct 30, 2009 @ 16:40
    Mark Olbert
    0

    Right, I was doing that. What I meant was, the output from my calls to Trace.Write() weren't showing up amongst all the stuff generated by Umbraco. So I presume it's doing something funky under the hood.

    - Mark

Please Sign in or register to post replies

Write your reply to:

Draft