wkallhof / uLogs

An Umbraco Trace Log viewer plugin for the Umbraco 7.3 Back-Office that allows you to view logs by date and a variety of other refinements.
Apache License 2.0
4 stars 1 forks source link

Does not pick up files with machine names #3

Closed harvzor closed 8 years ago

harvzor commented 8 years ago

uLogs correctly picks up any log with a filename of the format UmbracoTraceLog.txt.yyyy-mm-dd but not of the format UmbracoTraceLog.MACHINE_NAME.txt.yyyy-mm-dd.

I think this new MACHINE_NAME is a late addition to log4net.

wkallhof commented 8 years ago

@HarveyWilliams I updated the package to look for any file that at least starts with "UmbracoTraceLog." vs requiring it to look for files that start with "UmbracoTraceLog.txt".

If any future formats cause issues, there is another option where you can specify the file name to look for via code.

Placing uLogs.uLogsResolver.LogFileName = "UmbracoTraceLog."; somewhere within the ApplicationStarting method for the site would tell uLogs to look for files that start with that. However, like I said, it should be updated to use that as the default check now so you shouldn't need to add that.

harvzor commented 8 years ago

@wkallhof Thanks. I have just tested and your fix works.