You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
548 B

using System.Configuration;
using System.Data;
using System.IO;
using System.Windows;
using log4net.Config;
using SparkClient.Model.Helper;
namespace SparkClient;
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
protected override void OnStartup(StartupEventArgs e)
{
base.OnStartup(e);
//加载日志配置文件
XmlConfigurator.Configure(new FileInfo("log4net.config"));
//运行是否需要归档
Log4NetHelper.ArchiveOldLogs();
}
}