• Post Reply Bookmark Topic Watch Topic
  • New Topic

Urlybird 1.1.1 logging

 
Alenkhe David
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am planing on a singleton logger class, that other classes can call to get an instance for logging purposes. Also would want to dump log records to file.

Any thoughts?

Thanks.
 
satishkumar janakiraman
Ranch Hand
Posts: 334
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi David,

Singleton is a best choice for cache, logger etc. Multiple instances of cache/logger will create complexity in the application.


sat
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!