I have log files that are named so
How can I associate all of them with a program in Windows 7 without doing it individually for each extension?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
The file associations are stored individually under
HKEY_CLASSES_ROOT in the registry. Even similar extensions are stored separately: .jpeg .jpg, .htm .html.
Consider adjusting the filename output format to
Service.<date>.log. If this is not possible to configure, write a script which periodically renames the files appropriately.
EDIT (you mentioned log4net): According to the following StackOverflow post, you should be able to modify the logfile format to put the date earlier in the filename.