This is done inside of a mvc5 application, setting up the file appenders was the easy part. Now I'm stuck as to how to go about setting up a logging such that:
- Daily file logging names are in the format "logfileName-{month}-{day}-{year}.txt" format
- Setting up a daily log file appender such that after 24 hours the log file or log information is sent to a email address.
I'm surprised that I'm having such a hard time finding examples of such a solution. I don't think what I'm doing is revolutionary or unique. Any examples or documentation (especially for the email smtp part) would be greatly appreciated.
And yes I have looked at http://logging.apache.org/log4net/release/config-examples.html
datePattern
attribute appropriately, and regarding item 2 see. Sending errors in a roll up digest email with log4net – stuartd