using System.Windows; namespace DeviceService; /// /// Interaction logic for App.xaml /// public partial class App : Application { // log4net 由 AssemblyInfo.cs 中的 [assembly: XmlConfigurator(ConfigFile = "Config/log4net.config")] // 依据配置文件完成初始化(Console / RollingFile / Memory 三个 Appender 均在配置文件中定义)。 }