| John's profileJohn West Blogs about Si...PhotosBlogLists | Help |
|
12/22/2008 Cool Code Styling and Documentation ToolsAs a developer strongly interested in programmer productivity and practices, I am always interested in coding standards and cool tools for developers. Most Sitecore developers are aware of JetBrains Resharper for Microsoft Visual Studio. Recently a colleague introduced me to some tools that enforce aspects of Sitecore documentation, syntax, styling, and other standards. It should be possible to customize them as desired. The tools include: I haven't had a chance to truly explore these tools, and I have little understanding of which features come from Visual Studio, Resharper, StyleCop, StypeCop for Resharper, Agent Smith, or Agent Johnson, but as someone who researches and writes documentation almost full time, I appreciate the suggestions these tools integrate into the development environment. I will try to describe specifics as I encounter them while writing and refactoring code. At the very least, various rules help to keep lines very short, which is great for writing documentation, but should also simplify refactoring. 12/9/2008 Create a New Sitecore Log File Each Time ASP.NET RecyclesBy default, Sitecore logs various system activities to a file. The /configuration/log4net/appender/file element in web.config controls the name and location of the log file. The default entry is as follows: <file value="$(dataFolder)/logs/log.{date}.txt" />
This causes Sitecore to generate a new log file each day, which is generally appropriate for production solutions. But Sitecore developers could benefit if the system generated a new log file each time ASP.NET recycles, such as after updating an assembly or web.config. One solution is to change the configuration to include a timestamp in the file name: <file value="$(dataFolder)/logs/log.{date}.{time}.txt" />
This causes Sitecore to create a new log file each time ASP.NET recycles. Sitecore has described this issue here on the Sitecore Developer Network. |
|
|