I am using log4net to log to a sql table. I’d like to be able to either only keep the most recent n days, or the most recent n entries in the table. Is this possible with log4net?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I figured it out, for the
commandTextfor the AdoNetAppender I set the command text to:It feels hacky, but it works. I’ll post here if I find a neater solution.