app.config 内でタグの名前を変更することはできませんか?
次を使用する場合
...
<sectionGroup name="common">
<section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging" />
</sectionGroup>
...
<common>
<logging>
<factoryAdapter type="Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter, Common.Logging.Log4Net">
<arg key="configType" value="INLINE" />
</factoryAdapter>
</logging>
</common>
...
すべてが期待どおりに機能します (共通ロギングによるロギングが行われます)。しかし、セクション名を変更すると、構成は無視されます。たとえば、グループ common の名前を mycommon に変更した場合です。
<sectionGroup name="mycommon">
<section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging" />
</sectionGroup>
...
<mycommon>
<logging>
<factoryAdapter type="Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter, Common.Logging.Log4Net">
<arg key="configType" value="INLINE" />
</factoryAdapter>
</logging>
</mycommon>
...
誰でもトリックを知っていますか?