How do I configure the Enterprise Library Logging Application Block to place the log files in the ProgramData folder? AFAIK it’s only possible to use relative paths (from the installation directory) or absolute paths to set the location in EntLib configuration.
How do I configure the Enterprise Library Logging Application Block to place the log
Share
You can also use (most) environment variables in the fileName path. ProgramData folder environment variable is %ALLUSERSPROFILE%, so you could set up your configuration file something like this: