RamachandraVN / upnpx

Automatically exported from code.google.com/p/upnpx
0 stars 0 forks source link

Missing user-centric logging facility #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

Here is my second request for enhancement.
A future enhancement could be to have a logging framework used in libupnpx and 
configurable in the api. A variable could be set to VERBOSE, INFO or ERROR ... 
and according to value set, we could have more or less logs from libupnpx.
Reading the code, I noticed that some useful debugging logs are now commented.
What could be interesting would be to enable/disable the debugging logs 
according to the value set in the client code.

What steps will reproduce the problem?
1. Following the tutorial
2. Reading the code
3. ...

What is the expected output? What do you see instead?
Expecting more debugging logs

What version of the product are you using? On what operating system?
Current version. On iOS 4.3

Original issue reported on code.google.com by angea...@gmail.com on 5 Jun 2011 at 11:17

GoogleCodeExporter commented 9 years ago
In attachment, an example based on what I got from some other projects.
The http://code.google.com/p/cocoalumberjack/ is a good framework for this kind 
of things. It must be compiled or linked with the project in order to use the 
file in attachment.
Another thing is also to choose a Logger in the ApplicationDelegate 
implementation, better in method didFinishLaunchingWithOptions:

[DDLog addLogger:[DDTTYLogger sharedInstance]]; // To log in Console.app

Here is my contribution ;-)
Cheers

Original comment by angea...@gmail.com on 7 Jun 2011 at 8:52

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by bruno.ke...@gmail.com on 22 Jun 2011 at 11:59