Return-Path: Delivered-To: apmail-ibatis-dev-archive@www.apache.org Received: (qmail 42900 invoked from network); 21 Mar 2008 09:59:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Mar 2008 09:59:29 -0000 Received: (qmail 82299 invoked by uid 500); 21 Mar 2008 09:59:27 -0000 Delivered-To: apmail-ibatis-dev-archive@ibatis.apache.org Received: (qmail 82281 invoked by uid 500); 21 Mar 2008 09:59:27 -0000 Mailing-List: contact dev-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ibatis.apache.org Delivered-To: mailing list dev@ibatis.apache.org Received: (qmail 82270 invoked by uid 99); 21 Mar 2008 09:59:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Mar 2008 02:59:27 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Mar 2008 09:58:46 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 506FB234C0A7 for ; Fri, 21 Mar 2008 02:57:32 -0700 (PDT) Message-ID: <1285997090.1206093452315.JavaMail.jira@brutus> Date: Fri, 21 Mar 2008 02:57:32 -0700 (PDT) From: "Gilles Bayon (JIRA)" To: dev@ibatis.apache.org Subject: [jira] Closed: (IBATISNET-187) User is not notified of missing logging implementation file (e.g. IBatisNet.Common.Logging.Log4Net) In-Reply-To: <4577964.1161059855324.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/IBATISNET-187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gilles Bayon closed IBATISNET-187. ---------------------------------- Resolution: Fixed Guess is corrected > User is not notified of missing logging implementation file (e.g. IBatisNet.Common.Logging.Log4Net) > --------------------------------------------------------------------------------------------------- > > Key: IBATISNET-187 > URL: https://issues.apache.org/jira/browse/IBATISNET-187 > Project: iBatis for .NET > Issue Type: Improvement > Reporter: Ron Grabowski > Assignee: Gilles Bayon > Priority: Trivial > > The following code is executed when LogManager cannot load the specified logging implementation (e.g. IBatisNet.Common.Logging.Log4net): > ILoggerFactoryAdapter defaultFactory = BuildDefaultLoggerFactoryAdapter(); > ILog log = defaultFactory.GetLogger( typeof(LogManager) ); > log.Warn( "Unable to create instance of type " + setting.FactoryAdapterType.FullName + ". Using default logger.", ex ); > The default logger factory adapter is the NoOpLoggerFA which means the message is swallowed and never shown to the user. > We should write that message out so the user can see it. Maybe: > System.Diagnostics.Trace.WriteLine("Unable to create instance of type " + setting.FactoryAdapterType.FullName + ". Using default logger."); -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.