You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ibatis.apache.org by "Gilles Bayon (JIRA)" <ib...@incubator.apache.org> on 2008/03/21 10:57:32 UTC

[jira] Closed: (IBATISNET-187) User is not notified of missing logging implementation file (e.g. IBatisNet.Common.Logging.Log4Net)

     [ 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.