find a location for property in a new city

Monday, 28 May 2012

How to turn off logging on Combres

I have been using Combres for my .NET app to minify, combine and compress my JavaScript and CSS. So far I have found it awesome.

It really does do everything it claims. Minifing your scripts and CSS, then combines them all so that all the code is sent via one HTTP request (well one for CSS and one for JavaScript). It also handles GZip or deflate compression should the request accept it. It is easy to set up since it is now available through NuGet and using it will make YSlow smile when it scans your site.

Logging

One thing that is annoying though is that Combres seems to log everything it does. "Use content from content's cache for Resource x...Use content from content's cache for Resource y" This is fine in development but unnecessary in production so I wanted to turn it off but couldn't find how to do this in any documentation.

The way I managed to turn off logging was to find the line in the web.config that combres put in that looks like this:

<combres definitionUrl="~/App_Data/combres.xml" logProvider="Combres.Loggers.Log4NetLogger" />

You simply need to remove the logProvider so it looks like this:

<combres definitionUrl="~/App_Data/combres.xml" />

If you still want logging on your development environment you can simply remove the logProvider attribute in a web.config transform.

Follow britishdev on Twitter

57 comments:

  1. Please keep on posting such quality articles as this is a rare thing to find these days. I am always searching online for articles that can help me. Looking forward to another great blog. Good luck to the author! all the best! http://celabright.org

    ReplyDelete
  2. Considerably the article is in reality the greatest on this noteworthy topic. I agree with your conclusions and will eagerly look forward to your next updates. Saying thanks will not just be sufficient for the wonderful clarity in your writing. I will immediately grab your rss feed to stay privy of any updates!
    SNA Auto Rental

    ReplyDelete
  3. Please keep on the posting this article because it is rear thing.

    ReplyDelete
  4. I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff your post

    ReplyDelete
  5. This article gives the valuable information . this is very nice one and gives indepth information. thanks for this nice article.
    Walking Holidays Europe

    ReplyDelete
  6. This is my first time at your blog and I've really enjoyed looking around. I will come back again in the future to check out some of the other articles.
    Fire Stopping

    ReplyDelete
  7. Thank you! Been wanting to turn off logging for months. (That's right, this is a real comment! Blast you spam-bots and your atrocious yet amusing grammar!) For the newbies, the Web.config file is found at the root level of the ASP.NET solution folder.

    ReplyDelete
  8. I can set up my new idea from this post. It gives in depth information. Thanks for this valuable information for all,..

    Catninja.org
    Wormate-io.com

    ReplyDelete
  9. great post. Thanks for sharing this information.Tutuapp APK

    ReplyDelete
  10. Motifz Designer Lawn. 1, 2 & 3 Piece Unstitched Premium Embroidered Lawn 2019, Premium Lawn, Lawn 2019, Best lawn collection, Motifz, Best Lawn in Pakistan, Shipping worldwide. Stitching option available.

    ReplyDelete
  11. Buy Premium lawn Online for Women's at best prices available at Motifz. ✓ Latest Fashion, ✓ Trendy Designs ➤ Shop Now!

    ReplyDelete
  12. Linksys router provides the feature of a web-based setup on linksys ip address

    ReplyDelete
  13. Color print test page or black & white 720x960 is the link which can print high quality printer test page by just visiting the website test page

    ReplyDelete
  14. QuickBooks technical support phone number is available at different stores and you can work easily without any tension.

    ReplyDelete
  15. Wholesale printed custom perfume boxes with the highest quality and affordable prices. Free worldwide Delivery and free Custom Perfume Boxes design.

    ReplyDelete
  16. Packers And Movers Bangalore Local Household Shifting Service, Get Free Best Price Quotes Local Packers and Movers in Bangalore List, Compare Charges, Save Money And Time at
    Local Packers And Movers Bangalore

    ReplyDelete
  17. Buy online wholesale custom cosmetic boxes and packaging at seashore packaging at the easy price Free shipping worldwide with 24/7 customer support.

    ReplyDelete
  18. Blackbird packaging provide you with any size, shape design, custom cosmetic boxes sooner than any other packaging competitor in the market

    ReplyDelete
  19. Get Shifting/Relocation Quotation from ###Packers and Movers Delhi. Packers and Movers Delhi 100% Affordable and Reliable ***Household Shifting Services. Compare Transportation Charges and Save Time, Verified and Trusted Packers and Movers in Delhi, Cheap and Safe Local, Domestic House Shifting @ Packers And Movers Delhi

    ReplyDelete
  20. Packaging town is a one-stop solution for the short-run Custom Packaging, Wholesale cream Boxes needs, and supplies at ease.

    ReplyDelete
  21. mylar label bags in stock now. Ready made Cali pack designs. Fast Shipping at Your Supplies. Custom designs available

    ReplyDelete
  22. Blackbird packaging provide you with any size, shape design, cbd bath bomb boxes sooner than any other packaging competitor in the market

    ReplyDelete
  23. Packaging town is a one stop solution for the short-run tuck top boxes wholesale needs and supplies. At affordable prices. Request a free quote now.

    ReplyDelete
  24. Packaging town is a one stop solution for the short-run custom tincture boxes needs and supplies. At affordable prices. Request a free quote now.

    ReplyDelete
  25. Blackbird packaging provide you with any size, shape design, custom cookie boxes sooner than any other packaging competitor in the market

    ReplyDelete
  26. Packaging town is a one stop solution for the short-run custom beverage packaging needs and supplies. At affordable prices. Request a free quote now.

    ReplyDelete
  27. buy grocery online from alfatah at best prices. get free shipping

    ReplyDelete
  28. buy online jogger pants online from wild goat clothing at best prices. Get Free shipping

    ReplyDelete
  29. Shop Electronics online in lahore Goods at Al-Fatah, Pakistan’s leading chain of departmental stores. Shop from a huge range of top brands Home Appliances, Smart-tech and Phones and Sound bars from Al-Fatah. Shop from huge range of electronics available at Al-Fatah. Avail Free Delivery on orders above 1000 PKR in selected cities.

    ReplyDelete
  30. Blackbird packaging company can provide you with any size, shape design, and wholesale cookie boxes sooner than any other packaging competitor in the market

    ReplyDelete
  31. Packaging town is a one stop solution for the short-run tuck top mailer boxes needs and supplies. At affordable prices. Request a free quote now.

    ReplyDelete
  32. Blackbird packaging company can provide you with any size, shape design, and cbd bath bombs wholesale sooner than any other packaging competitor in the market

    ReplyDelete
  33. Blackbird packaging company can provide you with any size, shape design, and cookie boxes wholesale sooner than any other packaging competitor in the market

    ReplyDelete
  34. Blackbird packaging provide you with any size, shape design, essential oil packaging boxes sooner than any other packaging competitor in the market

    ReplyDelete
  35. Blackbird packaging company can provide you with any size, shape design, and wholesale cookie boxes sooner than any other packaging competitor in the market

    ReplyDelete
  36. Thanks for sharing information with us…satisfied after visiting your blog…. Learn the latest trends & their practical application by experts with us…you can contact us click on
    Visit ISMT India

    ReplyDelete
  37. buy baby care product from medisense.pk at best prices delivered at your doorstep. get free shipping

    ReplyDelete
  38. buy gym tshirts for men online from dshred at easy prices delivered at your doorstep.get free shipping.

    ReplyDelete
  39. Student Experience: An insight into service provider MyAssignmenthelp.com
    Must check the list of Essay Writing Service

    Considering the recent scenario of several scams involving academic help services, students have become quite sceptical about the service providers. With every passing day, they are more intrigued to know about the experience of previous clients. MyAssignmenthelp.com is a company which has been providing academic assistance for the past ten years. Over the years, they have earned a good reputation as a service provider that delivers nothing but high-quality work. By going through the MyAssignmentHelp reviews of their past clients, one can see that they have been completely satisfied with the service of the company.
    The company has gained praise from the students on multiple grounds:
    Excellent quality of work-
    MyAssignmenthelp.com has gained popularity because of the superior quality academic papers. According to the My Assignment Help reviews, the experts create the academic papers with utmost dedication, by paying attention to every detail. From using the correct structure, language, tone, to including the most useful information, they do everything to improve the quality of the paper. Along with this, the experts of the company also include their personal input to write a really impressive copy.
    Experienced writers-
    They have the most talented writers with years of writing experience. MyAssignmentHelp review has more than 4500 writers in their team and most of them are PhD degree holders. Till date, they have delivered over 800,000 orders. They are adept at completing the papers even on the toughest of the topics. At MyAssignmenthelp.com, students can hire writers and receive every type of assistance. This company hires the best writers for their team.
    Read: Myassignmenthelp.com review
    A Decade of experience-
    MyAssignmenthelp.com has been serving in this industry for more than a decade. Over the years, they have helped more than 100,000 students with their academics. With unmatched quality of work, they have become the leader among academic help providers. Owing to a long experience of the company, they know how to bring maximum success to the students. This is why they are extremely popular among students of all levels.
    A diverse range of services-
    From personal experience essays to case studies, at My Assignment Help review, students can get professional assistance with everything. This way, they don't have to go from one service provider to another to when they need assistance with different types of academic papers.
    Thus, it can be seen that most of the students who availed the service of MyAssignmenthelp.com have been thoroughly satisfied with the paper they received. Hence, individuals can look forward to a good experience by choosing this company.
    Read Myassignmenthelp.com reviews
    Summary
    Customer reviews are extremely important to assess the quality of a service provider. This article presents the past experience of clients of MyAssignmenthelp.com. Most clients are of the opinion that they are quite satisfied with the papers delivered by the experts of the company.

    ReplyDelete
  40. buy makeup online in lahore from alfatah at best prices delivered at your doorstep. get free delivery

    ReplyDelete
  41. buy otc drugs online online from medisense at best prices deloivered at your doorstep. get free shipping

    ReplyDelete
  42. Buy online pharmacy in pakistan at affordable prices from medisense delivered at your doorstep. Get free shipping

    ReplyDelete
  43. buy active wear tshirts for women online from dshred at easy prices delivered at your doorstep. get free shipping

    ReplyDelete
  44. buy gym tshirts for men online from Dshred at best prices delivered at your doorstep. get free shipping

    ReplyDelete
  45. NDURE brings you its wide range of Men's t-shirt. Now you can buy your favorites with just a tap. You can find our t-shirts online by logging into our site. Our shirts are made with pure fabric that makes you stand out. So don't wait around and shop from our collection of online t-shirts.

    ReplyDelete
  46. Study Engineering at the best autonomous college in AP with scholarships and full faculty support with high quality education and professional career support.
    https://www.adityatekkali.edu.in/

    ReplyDelete
  47. buy electronics online from Al-Fatah at best prices delivered at your doorstep. Get free shipping

    ReplyDelete
  48. buy leggings for women online from Dshred at easy prices delivered at your doorstep. Get free shipping

    ReplyDelete
  49. Thanks for sharing the post,

    https://bahrainhelplinegroup.com/usa-apostille

    ReplyDelete
  50. Buy online electronics from Al-Fatah at best prices delivered at your doorstep. Get free shipping

    ReplyDelete
  51. Buy men clothes online from Al-Fatah at best prices delivered at your doorstep. Get free shipping

    ReplyDelete