Return-Path: X-Original-To: apmail-logging-log4net-dev-archive@www.apache.org Delivered-To: apmail-logging-log4net-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 09B5917526 for ; Wed, 1 Oct 2014 11:25:34 +0000 (UTC) Received: (qmail 3706 invoked by uid 500); 1 Oct 2014 11:25:33 -0000 Delivered-To: apmail-logging-log4net-dev-archive@logging.apache.org Received: (qmail 3660 invoked by uid 500); 1 Oct 2014 11:25:33 -0000 Mailing-List: contact log4net-dev-help@logging.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Log4NET Dev" List-Id: Delivered-To: mailing list log4net-dev@logging.apache.org Received: (qmail 3650 invoked by uid 99); 1 Oct 2014 11:25:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Oct 2014 11:25:33 +0000 Date: Wed, 1 Oct 2014 11:25:33 +0000 (UTC) From: "Dominik Psenner (JIRA)" To: log4net-dev@logging.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LOG4NET-442) ReconnectOnError MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LOG4NET-442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14154672#comment-14154672 ] Dominik Psenner commented on LOG4NET-442: ----------------------------------------- The appender failed to connect to the sql server when trying to send the buffer. I would expect the appender to discard the events and only retry to connect when the next events come in. So the question is: have you "created" some log events after that the server was turned on again and was running successfully? Powering the server up might take some time and you will have to consider to wait for that time to pass by. > ReconnectOnError > ----------------- > > Key: LOG4NET-442 > URL: https://issues.apache.org/jira/browse/LOG4NET-442 > Project: Log4net > Issue Type: Bug > Components: Builds > Affects Versions: 1.2.13 > Environment: Microsoft .NET 4.5 > Reporter: Alessio Sanguineti > Attachments: log4net.txt > > > Hello, in our .NET application using Log4Net to log on a Sql Server 2014 database, we set the parameter "ReconnectOnError" to true in the ADO.Net Appender configuration. > Even if the property seems to be read correctly (as visible on the log), whenever the server is not reachable for a while the appender does not reconnect anymore thus not logging anything else. > We get the log file attached of a test where we turned off SQL Server for about 1 minute before restarting it. > Thank you. > Regards -- This message was sent by Atlassian JIRA (v6.3.4#6332)