Question

We have an asp.net application that logs errors and warnings to xml files using log4net.

We have tried quite a few log4net viewers but didn't find any decent ones.

The latest one we have tried is log4net dashboard which is pretty good but doesn't do exactly what we need.

Our logs are saved in C:\MyApp\Logs[year][month]\log[date].xml

Is there any decent web based viewer that can allow us to view all the logs under C:\MyApp\Logs\

The viewer doesn't need to have a free license for use.

Was it helpful?

Solution

I see a post on their blog for this issue and how to work around it while a new build is dropped.

http://blog.reflectsoftware.com/2013/04/17/directorynotfoundexception/

I can confirm that creating this directory manually resolves the exception that is thrown.

OTHER TIPS

I've used l4ndash in the past and it is a good tool.

Have you tried changing this in the web.config? This should load all files in that folder.

    <datasource name="XML Text file" Description="XML Text file (output from FilAppender or RollingFileAppender)">
        <provider type="L4NDashXmlTextFileProvider.XmlTextFileProvider" assembly="L4NDashXmlTextFileProvider, Version=2.4, Culture=neutral"/>
        <predefinedsearchfilter value="Filters\DefaultSearchFilters.xml"/>
        <providersettings>
            <filename value="C:\MyApp\Logs\*.*" /> 
            <SleepOnRename value="100"/>
        </providersettings>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top