I think the logging situation is a bit more complicated, I think you need to search for all the loggers and find the ones that are instances of FileAppender (or DailyRollingFileAppender). The common case is actually going to be DailyRollingFileAppender, so we will have to figure out the path the appender is using and also the format string so we can retrieve the log files.

Maybe we can convert the date format string to a regular expression and use that match with files at the destination (ugh!). For now for every logger record the path and the filename (or format).