NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 23 24 25 26 27 … 93 Next »
Logger from C#

 
  • 0 Vote(s) - 0 Average
Logger from C#
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,129
Threads: 957
Joined: May 2006
#1
2009-08-04, 04:25 AM
Can I use Logger functions outside of a plugin in a C# program to write to the GBPVR log folder?

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#2
2009-08-04, 05:02 AM
You can, but it'll log to a file with the name of the process. ie, if you got someapp.exe, it'll cause a someapp.exe.log to be created.

To use it, just add a reference to GBPVRPublic.dll to your project, add "using GBPVR.Public;" to the top of your class, then call the methods like Logger.Error("blah blah");
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,129
Threads: 957
Joined: May 2006
#3
2009-08-04, 05:11 AM
Thanks, I guess my problem is trying to include GBPVR.Public from a service and not an app.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Logger with MVP jam40jeff 2 1,593 2005-05-08, 12:22 AM
Last Post: jam40jeff

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode