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

Forums / Developing with Sitefinity / Using Sitefinity Error logging System

Using Sitefinity Error logging System

4 posts, 0 answered
  1. vinamra
    vinamra avatar
    45 posts
    Registered:
    23 Oct 2012
    19 Jun 2010
    Link to this post
    hi

    can i use Sitefinity Error Logging classes and functions for custom modules in sitefinity 3.7 sp3.

    if yes any sample.

    thanks
    vinamra
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    20 Jun 2010
    Link to this post
    Hi vinamra,

    You can use Telerik.Utilities.Log class and its methods

    sample code

    Telerik.Utilities.Log.Exception(new Exception("some message"));

    The supported modes are

    •         Trace
    •         Info
    •         Debug
    •         Exception
    •         Benchmark

    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Andrei
    Andrei avatar
    553 posts
    Registered:
    27 Nov 2008
    03 Feb 2012
    Link to this post
    Ivan,

    I am trying to use Utilities, but I get this:
    Error    3    The type or namespace name 'Utilities' does not exist in the namespace 'Telerik' (are you missing an assembly reference?)    C:\Program Files\Telerik\Sitefinity 4.3\Projects\Ids - 4.3.1873.0\App_Master\TracksVHFs.Master.cs    76    29    SitefinityWebApp

    Has the API changed or something.

    Many thanks,
    Andrei
  4. Andrei
    Andrei avatar
    553 posts
    Registered:
    27 Nov 2008
    03 Feb 2012
    Link to this post
    Dont worry, I found this somewhere else: Telerik.Microsoft.Practices.EnterpriseLibrary.Logging.Logger.Writer.Write(exc.Message);

    Will see how I get on with it. Thanks.
    Andrei
Register for webinar
4 posts, 0 answered