VisualStudioでlog4netを使用すると、以下の警告が表示される場合があります。
警告 1 'log4net.Config.DOMConfiguratorAttribute' は古い形式です: 'Use XmlConfiguratorAttribute instead of DOMConfiguratorAttribute' |
この場合の対処法はメッセージ通りで、AssemblyInfo.csに書いた以下の1文を変更すれば、警告が表示されなくなります。
[assembly: log4net.Config.DOMConfigurator(Watch=true)] ↓ [assembly: log4net.Config.XmlConfigurator(Watch=true)] |
関連記事
コメントを残す