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

27 comments:

  1. 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
  2. Please keep on the posting this article because it is rear thing.

    ReplyDelete
  3. 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
  4. 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
  5. 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
  6. QuickBooks technical support phone number is available at different stores and you can work easily without any tension.

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

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

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

    ReplyDelete
  10. 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
  11. buy grocery online from alfatah at best prices. get free shipping

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

    ReplyDelete
  13. 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
  14. buy gym tshirts for men online from dshred at easy prices delivered at your doorstep.get free shipping.

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

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

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

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

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

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

    ReplyDelete
  21. Thanks for sharing the post,

    https://bahrainhelplinegroup.com/usa-apostille

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

    ReplyDelete
  23. Your blog was not only informative but also to the point. I learn many things from this blog. myassignmenthelp

    ReplyDelete
  24. One thing that is annoying though is that Combres seems to log everything it does
    visit Tel-U

    ReplyDelete
  25. One thing that is annoying though is that Combres seems to log everything SEO

    ReplyDelete