1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Can I "turn down" logging?

Can I "turn down" logging?

5 posts, 0 answered
  1. IT
    IT avatar
    52 posts
    Registered:
    30 Sep 2008
    25 Jan 2010
    Link to this post
    Our sitefinity.log file keeps growing and growing. While there is an occasional error, most of these are just [INFO] type entries when a user logs in. I'm used to using Log4Net which allows me to set a threshold for what is logged. So I would see just [ERROR] type entries, but not [INFO] unless I need to enable that for debugging.

    Is there any similar feature in Sitefinity, or does the log always show everything?

    Also, I believe I read in another thread that a logins were written to the database. If true, to which table is that information written?

    Thanks!
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    25 Jan 2010
    Link to this post
    Hi Stormy,

    Sitefinity.log catches each error that is thrown from any code of the website. There is no option to separate what you want to log. Generally you can delete the content of the log daily( using StreamWriter and writing empty string) or move the log to another location and save it as a backup then create a new empty file in the same location /App_Data( using Directory.Move(old path,new path)) . Another option is turning off HealthMonitoring from the web.config file.

    The log errors are not saved to the database, only in sitefinity.log file.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. IT
    IT avatar
    52 posts
    Registered:
    30 Sep 2008
    25 Jan 2010
    Link to this post
    Thanks for the reply.

    I knew that errors weren't written to the database, but I thought I had read that user *logins* were written to the database. Is that the case?
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    25 Jan 2010
    Link to this post
    Hi Stormy,

    [telerik_Users] table contains data for the last login date of an user.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  5. IT
    IT avatar
    52 posts
    Registered:
    30 Sep 2008
    25 Jan 2010
    Link to this post
    Ah, okay. I had hoped all logins were recorded (since we use AD for authentication).

    Thanks.
Register for webinar
5 posts, 0 answered