Forums

Skip Navigation LinksHome / Developer Network / Forums / Sitefinity Older Versions (3.x): Developing with Sitefinity > Using Sitefinity Error logging System

Using Sitefinity Error logging System

  • Posted on Jun 19, 2010 (permalink)

    hi

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

    if yes any sample.

    thanks
    vinamra

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Jun 20, 2010 (permalink)

    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

    Reply

  • Andrei Master avatar

    Posted on Feb 3, 2012 (permalink)

    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

    Reply

  • Andrei Master avatar

    Posted on Feb 3, 2012 (permalink)

    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

    Reply

  • Register for webinar
Skip Navigation LinksHome / Developer Network / Forums / Sitefinity Older Versions (3.x): Developing with Sitefinity > Using Sitefinity Error logging System