using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
[assembly: log4net.Config.DOMConfigurator(Watch = true)]
namespace Log4Net
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private static readonly log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
private void button1_Click(object sender, EventArgs e)
{
log.Warn("123456");
}
}
}