Copied to clipboard

Flag this post as spam?

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


  • vladzebu 59 posts 346 karma points
    Jul 10, 2009 @ 08:09
    vladzebu
    2

    Log file Umbraco

    Do I have API in Umbraco for Log File or i have to create a text file and i have to write there. 

    Best regards , Vlad 

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Jul 10, 2009 @ 08:17
    Dirk De Grave
    0

    Hi Vlad,

    Logging is already supported via api and all logging goes into the database table umbracoLog. 

    A typical logging message you'd use in your code:

    Hope this helps.

    Regards,

    /Dirk

     

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Jul 10, 2009 @ 08:19
    Dirk De Grave
    102

    Arrgghh, it's not posting my code

    Second try:

    BusinessLogic.Log.Add(BusinessLogic.LogTypes.Error,BusinessLogic.User.GetUser(0),-1,"Log message");

    /Dirk

  • Andrew Lansdowne 43 posts 124 karma points
    Jul 22, 2010 @ 11:43
    Andrew Lansdowne
    0

    Just to note that the logs are not viewable out of the box (unless you look in the DB) but you can install the great Log Manager package from within Umbraco Package Repo then you are able to see them in Developer > Log manager.

  • Craig100 1136 posts 2523 karma points c-trib
    Jun 12, 2012 @ 00:28
    Craig100
    0

    Thanks for the log manager steer!

    Log entry says: [UmbracoExamine] Error optimizing Lucene index,read past EOF, IndexSet: InternalIndexSet

Please Sign in or register to post replies

Write your reply to:

Draft