Making use of Sitecore’s Switcher to manage logger contexts

I'm sure you've used Sitecore.Common.Switcher<T> in your Sitecore projects numerous times, for example when disabling all security checks when editing items in code using the SecurityDisabler: using(new SecurityDisabler()){ // Edit Sitecore items } SecurityDisabler indirectly inherits Sitecore.Common.Switcher<T> which allows such behavior. There are other examples such as SiteContextSwitcher or DatabaseSwitcher. The cool thing about this is that it allows … Continue reading Making use of Sitecore’s Switcher to manage logger contexts

Advertisements

Sc101: Solr Cores

I'm sure you're aware that Solr is a search engine that help us search for content quickly. Sitecore 8.2 and below come pre-configured with Lucene.Net, which is also a search engine. Lucene.Net is more basic and has its limitations so more customers request or need a more capable search engine. Sitecore supports Solr, which is based … Continue reading Sc101: Solr Cores

Tips & Tricks: Sitecore Log file naming

When I started working with Sitecore, I always wondered how Sitecore names its logs. Sometimes you would see a date only as the name e.g. log.20170214.txt and sometimes a date and a time e.g. log.20170214.165444.txt. Keep in mind that Sitecore uses Log4Net as the logging framework so you'll need to read more about it if you're … Continue reading Tips & Tricks: Sitecore Log file naming