Skip to content

Instantly share code, notes, and snippets.

@KevinJump
Created November 5, 2014 10:05
Show Gist options
  • Save KevinJump/31374df0707ecb2d68a4 to your computer and use it in GitHub Desktop.
Save KevinJump/31374df0707ecb2d68a4 to your computer and use it in GitHub Desktop.
Adding logging to the SiteNavigationController in the uLocalGov StarterKit.
...
foreach (IPublishedContent page in sitePages){
global::Umbraco.Core.Logging.LogHelper.Info<SiteNavigationSurfaceController>("Adding Page to a-z {0}", () => page.Name);
if (!azPages.ContainsKey(page.GetPropertyValue<string>("title"))){
azPages.Add(page.GetPropertyValue<string>("title"), page.Url);
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment