Click here to Skip to main content
15,884,176 members
Articles / Web Development / ASP.NET

Log Reporting Dashboard for ASP.NET MVC

Rate me:
Please Sign up or sign in to vote.
4.94/5 (60 votes)
23 Aug 2010CPOL12 min read 174.4K   5.6K   192  
Log reporting dashboard for Log4Net, NLog, ELMAH, and ASP.NET Health Monitoring.
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>
    </ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{CEBED126-50CE-4F20-B723-E879CD9153D2}</ProjectGuid>
    <ProjectTypeGuids>{F85E285D-A4E0-4152-9332-AB1D724D3325};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
    <OutputType>Library</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>MvcLoggingDemo</RootNamespace>
    <AssemblyName>MvcLoggingDemo</AssemblyName>
    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
    <MvcBuildViews>false</MvcBuildViews>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="DotNetOpenAuth">
      <HintPath>D:\darren\development\ExternalDependencies\DotNetOpenAuth.dll</HintPath>
    </Reference>
    <Reference Include="Elmah">
      <HintPath>D:\darren\development\ExternalDependencies\Elmah.dll</HintPath>
    </Reference>
    <Reference Include="log4net">
      <HintPath>..\..\..\..\..\..\..\..\darren\development\ExternalDependencies\log4net.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.CSharp" />
    <Reference Include="NLog">
      <HintPath>..\..\..\..\..\..\..\..\darren\development\ExternalDependencies\NLog.dll</HintPath>
    </Reference>
    <Reference Include="System" />
    <Reference Include="System.Data" />
    <Reference Include="System.Data.Entity" />
    <Reference Include="System.Drawing" />
    <Reference Include="System.Runtime.Serialization" />
    <Reference Include="System.Security" />
    <Reference Include="System.ServiceModel" />
    <Reference Include="System.Web.DataVisualization" />
    <Reference Include="System.Web.DynamicData" />
    <Reference Include="System.Web.Entity" />
    <Reference Include="System.Web.ApplicationServices" />
    <Reference Include="System.ComponentModel.DataAnnotations">
      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.Core">
      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.Data.DataSetExtensions">
      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
    <Reference Include="System.Xml.Linq">
      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.Web" />
    <Reference Include="System.Web.Extensions">
      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.Web.Abstractions" />
    <Reference Include="System.Web.Routing" />
    <Reference Include="System.Xml" />
    <Reference Include="System.Configuration" />
    <Reference Include="System.Web.Services" />
    <Reference Include="System.EnterpriseServices" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="Controllers\AccountController.cs" />
    <Compile Include="Controllers\AuthController.cs" />
    <Compile Include="Controllers\LoggingController.cs" />
    <Compile Include="Helpers\DateTimeExtensionMethods.cs" />
    <Compile Include="Helpers\DateTimeHelper.cs" />
    <Compile Include="Helpers\FormsHelper.cs" />
    <Compile Include="Helpers\FuzzyDateTime.cs" />
    <Compile Include="Helpers\StringExtensionMethods.cs" />
    <Compile Include="Helpers\TimePeriodHelper.cs" />
    <Compile Include="Helpers\UrlHelperExtensions.cs">
      <SubType>Code</SubType>
    </Compile>
    <Compile Include="Models\Entities\MvcLoggingDemo.Designer.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>MvcLoggingDemo.edmx</DependentUpon>
    </Compile>
    <Compile Include="Models\LogEvent.cs" />
    <Compile Include="Models\Repository\ElmahRepository.cs" />
    <Compile Include="Models\Repository\HealthMonitoringRepository.cs" />
    <Compile Include="Models\Repository\Interfaces\ILogReportingFacade.cs" />
    <Compile Include="Models\Repository\Interfaces\ILogReportingRepository.cs" />
    <Compile Include="Models\Repository\Log4NetRepository.cs" />
    <Compile Include="Models\Repository\LogReportingFacade.cs" />
    <Compile Include="Models\Repository\NLogRepository.cs" />
    <Compile Include="Models\RuleViolation.cs" />
    <Compile Include="Controllers\HomeController.cs" />
    <Compile Include="Global.asax.cs">
      <DependentUpon>Global.asax</DependentUpon>
    </Compile>
    <Compile Include="Services\Charting\Google\Visualization\ChartCellItem.cs" />
    <Compile Include="Services\Charting\Google\Visualization\ChartColumn.cs" />
    <Compile Include="Services\Charting\Google\Visualization\ChartData.cs" />
    <Compile Include="Services\Charting\Google\Visualization\ChartRow.cs" />
    <Compile Include="Services\Logging\Elmah\HandleErrorWithELMAHAttribute.cs" />
    <Compile Include="Models\AccountModels.cs" />
    <Compile Include="Models\WebIdentity.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
    <Compile Include="Services\Logging\Elmah\ErrorHandlingActionInvoker.cs" />
    <Compile Include="Services\Logging\Elmah\ErrorHandlingControllerFactory.cs" />
    <Compile Include="Services\Logging\ILogger.cs" />
    <Compile Include="Services\Logging\Log4Net\Log4NetLogger.cs" />
    <Compile Include="Services\Logging\LogConfigurationSection.cs" />
    <Compile Include="Services\Logging\LogFactory.cs" />
    <Compile Include="Services\Logging\LogUtility.cs" />
    <Compile Include="Services\Logging\NLog\NLogLogger.cs" />
    <Compile Include="Services\Logging\NLog\UtcDateRenderer.cs" />
    <Compile Include="Services\Logging\NLog\WebVariablesRenderer.cs" />
    <Compile Include="Services\OpenID\OpenIdRelyingPartyService.cs" />
    <Compile Include="Services\Paging\IPagedList.cs" />
    <Compile Include="Services\Paging\PagedList.cs" />
    <Compile Include="Services\Paging\Pager.cs" />
    <Compile Include="Services\Paging\PagingExtensions.cs" />
    <Compile Include="Services\RSS\FeedResult.cs" />
    <Compile Include="ViewModels\LoggingIndexModel.cs" />
    <Compile Include="ViewModels\LoggingManageModel.cs" />
  </ItemGroup>
  <ItemGroup>
    <Content Include="App_Data\SampleDatabase.mdf" />
    <Content Include="App_Data\SampleDatabase_log.LDF">
      <DependentUpon>SampleDatabase.mdf</DependentUpon>
    </Content>
    <Content Include="Content\images\google.gif" />
    <Content Include="Content\images\infocard_23x16.png" />
    <Content Include="Content\images\myopenid.png" />
    <Content Include="Content\images\openid.gif" />
    <Content Include="Content\images\openid_login.gif" />
    <Content Include="Content\images\verisign.gif" />
    <Content Include="Content\images\yahoo.gif" />
    <Content Include="Content\images\yahoo_login.png" />
    <Content Include="Credits.txt" />
    <Content Include="Global.asax" />
    <Content Include="Scripts\date.format.js" />
    <Content Include="Scripts\jquery.cookie.js" />
    <Content Include="Scripts\jquery_ui_datepicker.js" />
    <Content Include="Scripts\smothness\images\ui-bg_flat_0_aaaaaa_40x100.png" />
    <Content Include="Scripts\smothness\images\ui-bg_flat_75_ffffff_40x100.png" />
    <Content Include="Scripts\smothness\images\ui-bg_glass_55_fbf9ee_1x400.png" />
    <Content Include="Scripts\smothness\images\ui-bg_glass_65_ffffff_1x400.png" />
    <Content Include="Scripts\smothness\images\ui-bg_glass_75_dadada_1x400.png" />
    <Content Include="Scripts\smothness\images\ui-bg_glass_75_e6e6e6_1x400.png" />
    <Content Include="Scripts\smothness\images\ui-bg_glass_95_fef1ec_1x400.png" />
    <Content Include="Scripts\smothness\images\ui-bg_highlight-soft_75_cccccc_1x100.png" />
    <Content Include="Scripts\smothness\images\ui-icons_222222_256x240.png" />
    <Content Include="Scripts\smothness\images\ui-icons_2e83ff_256x240.png" />
    <Content Include="Scripts\smothness\images\ui-icons_454545_256x240.png" />
    <Content Include="Scripts\smothness\images\ui-icons_888888_256x240.png" />
    <Content Include="Scripts\smothness\images\ui-icons_cd0a0a_256x240.png" />
    <Content Include="Scripts\smothness\jquery_ui_datepicker.css" />
    <Content Include="Views\Logging\Chart.aspx" />
    <Content Include="Views\Logging\Details.aspx" />
    <Content Include="Views\Logging\Index.aspx" />
    <Content Include="Views\Logging\Manage.aspx" />
    <Content Include="Views\Logging\Search.aspx" />
    <Content Include="Views\Shared\Confused.aspx" />
    <Content Include="Views\Shared\EditorTemplates\DateTime.ascx" />
    <Content Include="Views\Shared\LoginStatus.ascx" />
    <Content Include="Views\Shared\LogOn.aspx" />
    <Content Include="Views\Shared\LogOnContent.ascx" />
    <Content Include="Web.config" />
    <Content Include="Web.Debug.config">
      <DependentUpon>Web.config</DependentUpon>
      <SubType>Designer</SubType>
    </Content>
    <Content Include="Web.Release.config">
      <DependentUpon>Web.config</DependentUpon>
    </Content>
    <Content Include="Content\Site.css" />
    <Content Include="Scripts\jquery-1.4.1.js" />
    <Content Include="Scripts\jquery-1.4.1.min.js" />
    <Content Include="Scripts\jquery-1.4.1-vsdoc.js" />
    <Content Include="Scripts\jquery.validate.js" />
    <Content Include="Scripts\jquery.validate.min.js" />
    <Content Include="Scripts\jquery.validate-vsdoc.js" />
    <Content Include="Scripts\MicrosoftAjax.js" />
    <Content Include="Scripts\MicrosoftAjax.debug.js" />
    <Content Include="Scripts\MicrosoftMvcAjax.js" />
    <Content Include="Scripts\MicrosoftMvcAjax.debug.js" />
    <Content Include="Scripts\MicrosoftMvcValidation.js" />
    <Content Include="Scripts\MicrosoftMvcValidation.debug.js" />
    <Content Include="Views\Account\ChangePassword.aspx" />
    <Content Include="Views\Account\ChangePasswordSuccess.aspx" />
    <Content Include="Views\Account\LogOn.aspx" />
    <Content Include="Views\Account\Register.aspx" />
    <Content Include="Views\Home\About.aspx" />
    <Content Include="Views\Home\Index.aspx" />
    <Content Include="Views\Shared\Error.aspx" />
    <Content Include="Views\Shared\Site.Master" />
    <Content Include="Views\Web.config" />
  </ItemGroup>
  <ItemGroup>
    <Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
  </ItemGroup>
  <ItemGroup>
    <Content Include="NLog.config" />
  </ItemGroup>
  <ItemGroup>
    <EntityDeploy Include="Models\Entities\MvcLoggingDemo.edmx">
      <Generator>EntityModelCodeGenerator</Generator>
      <LastGenOutput>MvcLoggingDemo.Designer.cs</LastGenOutput>
    </EntityDeploy>
  </ItemGroup>
  <ItemGroup>
    <Folder Include="Services\Charting\Microsoft\" />
  </ItemGroup>
  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
  <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
       Other similar extension points exist, see Microsoft.Common.targets.
  <Target Name="BeforeBuild">
  </Target> -->
  <Target Name="AfterBuild" Condition="'$(MvcBuildViews)'=='true'">
    <AspNetCompiler VirtualPath="temp" PhysicalPath="$(ProjectDir)" />
  </Target>
  <ProjectExtensions>
    <VisualStudio>
      <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
        <WebProjectProperties>
          <UseIIS>False</UseIIS>
          <AutoAssignPort>True</AutoAssignPort>
          <DevelopmentServerPort>52700</DevelopmentServerPort>
          <DevelopmentServerVPath>/</DevelopmentServerVPath>
          <IISUrl>
          </IISUrl>
          <NTLMAuthentication>False</NTLMAuthentication>
          <UseCustomServer>False</UseCustomServer>
          <CustomServerUrl>
          </CustomServerUrl>
          <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
        </WebProjectProperties>
      </FlavorProperties>
    </VisualStudio>
  </ProjectExtensions>
</Project>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Simbient
Australia Australia
Darren Weir is a senior .NET developer working for Simbient in North Sydney, Australia.

My blog is located at dotnetdarren.wordpress.com

Comments and Discussions