Respondido Error logging in C#...

  • Thursday, March 29, 2012 8:52 AM
     
     

    Want to know more on error logging done in c# ?

    EventLogEntryType method in Visual studio 2010, wat is the alternative for this in windows 8, Visual studio 2011..

    please help me out :(

    • Moved by John-P Thursday, March 29, 2012 3:23 PM error logging in C# (From:Windows Store: Publishing Metro Style apps for Windows 8)
    •  

All Replies

  • Thursday, March 29, 2012 7:09 PM
    Moderator
     
     Answered

    Metro apps do expose a the System.Diagnostics.Tracing namespace:
    http://msdn.microsoft.com/en-us/library/windows/apps/hh441592(v=vs.110).aspx

    You'll probably want to see the EventLevel enumeration:
    http://msdn.microsoft.com/en-us/library/windows/apps/system.diagnostics.tracing.eventlevel(v=vs.110).aspx


    Matt Small - Microsoft Escalation Engineer - Forum Moderator

  • Wednesday, May 16, 2012 8:51 PM
     
     

    In my winrt class used by my js metro app, I could not derive an EventSource. Is there a sample to demonstrate how tracing can be done in metro app? 

    Error 4 Windows Runtime class 'MyEventSource' has an invalid base type 'System.Diagnostics.Tracing.EventSource'.  Classes must either derive from System.Object or from a composable Windows Runtime class.  Implementation inheritance is not allowed.

    • Proposed As Answer by TheFrozenOne Friday, November 30, 2012 8:10 PM
    • Unproposed As Answer by TheFrozenOne Friday, November 30, 2012 8:10 PM
    •  
  • Wednesday, August 01, 2012 11:30 AM
     
     

    In my winrt class used by my js metro app, I could not derive an EventSource. Is there a sample to demonstrate how tracing can be done in metro app? 

    Error 4 Windows Runtime class 'MyEventSource' has an invalid base type 'System.Diagnostics.Tracing.EventSource'.  Classes must either derive from System.Object or from a composable Windows Runtime class.  Implementation inheritance is not allowed.


    Any progress? I met the same problem.
  • Saturday, May 18, 2013 9:40 AM
     
     Proposed
    hey here is a sample implementation for event source and ETW logging.

    Can Bilgin
    Blog Samples CompuSight

    • Proposed As Answer by Sachin S Saturday, May 18, 2013 5:41 PM
    •