• 大小: 0.20M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-25
  • 语言: C#
  • 标签: log4net  

资源简介

 

资源截图

代码片段和文件信息

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;
using System.Reflection;

namespace HelloLog4Net
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender EventArgs e)
        {
            log4net.ILog log = log4net.LogManager.GetLogger(Methodbase.GetCurrentMethod().DeclaringType);
            try
            {
                double temp = Double.Parse(“a“);
            }
            catch (System.Exception ex)
            {
                log.Error(ex.Message.ToString() ex);
                MessageBox.Show(e

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1021  2012-11-14 11:03  HelloLog4Net\HelloLog4Net\App.config

     文件       8704  2012-11-14 10:31  HelloLog4Net\HelloLog4Net\bin\Debug\HelloLog4Net.exe

     文件       1021  2012-11-14 11:03  HelloLog4Net\HelloLog4Net\bin\Debug\HelloLog4Net.exe.config

     文件      24064  2012-11-14 10:31  HelloLog4Net\HelloLog4Net\bin\Debug\HelloLog4Net.pdb

     文件      14328  2012-11-14 11:03  HelloLog4Net\HelloLog4Net\bin\Debug\HelloLog4Net.vshost.exe

     文件       1021  2012-11-14 11:03  HelloLog4Net\HelloLog4Net\bin\Debug\HelloLog4Net.vshost.exe.config

     文件        490  2007-07-21 01:33  HelloLog4Net\HelloLog4Net\bin\Debug\HelloLog4Net.vshost.exe.manifest

     文件        758  2012-11-14 11:03  HelloLog4Net\HelloLog4Net\bin\Debug\log\log.txt

     文件     270336  2012-11-14 10:21  HelloLog4Net\HelloLog4Net\bin\Debug\log4net.dll

     文件        852  2012-11-14 10:31  HelloLog4Net\HelloLog4Net\Form1.cs

     文件       2026  2012-11-14 10:25  HelloLog4Net\HelloLog4Net\Form1.Designer.cs

     文件       5814  2012-11-14 10:25  HelloLog4Net\HelloLog4Net\Form1.resx

     文件       4099  2012-11-14 10:26  HelloLog4Net\HelloLog4Net\HelloLog4Net.csproj

     文件     270336  2012-11-14 10:21  HelloLog4Net\HelloLog4Net\lib\log4net.dll

     文件          3  2012-11-14 10:26  HelloLog4Net\HelloLog4Net\log\log.txt

     文件       1132  2012-11-14 11:03  HelloLog4Net\HelloLog4Net\obj\Debug\HelloLog4Net.csproj.FileListAbsolute.txt

     文件        847  2012-11-14 10:26  HelloLog4Net\HelloLog4Net\obj\Debug\HelloLog4Net.csproj.GenerateResource.Cache

     文件       8704  2012-11-14 10:31  HelloLog4Net\HelloLog4Net\obj\Debug\HelloLog4Net.exe

     文件        180  2012-11-14 10:28  HelloLog4Net\HelloLog4Net\obj\Debug\HelloLog4Net.Form1.resources

     文件      24064  2012-11-14 10:31  HelloLog4Net\HelloLog4Net\obj\Debug\HelloLog4Net.pdb

     文件        180  2012-11-14 10:28  HelloLog4Net\HelloLog4Net\obj\Debug\HelloLog4Net.Properties.Resources.resources

     文件       5865  2012-11-14 10:26  HelloLog4Net\HelloLog4Net\obj\Debug\ResolveAssemblyReference.cache

     文件        493  2012-11-14 10:19  HelloLog4Net\HelloLog4Net\Program.cs

     文件       1468  2012-11-14 10:22  HelloLog4Net\HelloLog4Net\Properties\AssemblyInfo.cs

     文件       2874  2012-11-14 10:19  HelloLog4Net\HelloLog4Net\Properties\Resources.Designer.cs

     文件       5612  2012-11-14 10:19  HelloLog4Net\HelloLog4Net\Properties\Resources.resx

     文件       1097  2012-11-14 10:19  HelloLog4Net\HelloLog4Net\Properties\Settings.Designer.cs

     文件        249  2012-11-14 10:19  HelloLog4Net\HelloLog4Net\Properties\Settings.settings

     文件        926  2012-11-14 10:19  HelloLog4Net\HelloLog4Net.sln

    ..A..H.     18432  2012-11-14 11:05  HelloLog4Net\HelloLog4Net.suo

............此处省略14个文件信息

评论

共有 条评论