• 大小: 314KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-16
  • 语言: 其他
  • 标签: 文本统计  log4net  

资源简介

文本统计工具,将一个文件夹内部所有的txt文件按照制定的字段进行统计,可以用于软件日志日常运行统计,使用Excel将统计结果输出(需要安装office),并且添加了log4net日志记录组件使用方法,同时生成多个文件夹记录日志。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;


namespace Statisticstool
{
    static class Program
    {
        /// 
        /// 应用程序的主入口点。
        /// 

        [STAThread]
        static void Main()
        {
            log4net.Config.xmlConfigurator.Configure();
            Application.EnableVisualstyles();
            Application.SetCompatibleTextRenderingDefault(false);
            StatisticsForm SF = new StatisticsForm();
            SF.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            Application.Run(SF);
        }
    }
}

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

     文件       2148  2018-03-29 11:59  Statisticstool\Statisticstool\App.config

     文件       2143  2018-03-29 11:33  Statisticstool\Statisticstool\App.config.bak

     文件     275968  2017-03-08 19:25  Statisticstool\Statisticstool\bin\Debug\log4net.dll

     文件      11592  2018-04-13 14:18  Statisticstool\Statisticstool\bin\Debug\Statisticstool.vshost.exe

     文件       1253  2018-03-29 11:30  Statisticstool\Statisticstool\Common\LogHelper.cs

     文件      92854  2016-07-25 14:29  Statisticstool\Statisticstool\i2.ico

     文件       7037  2018-03-29 11:59  Statisticstool\Statisticstool\obj\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       6830  2018-04-12 08:51  Statisticstool\Statisticstool\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件     434688  2018-03-29 11:11  Statisticstool\Statisticstool\obj\Debug\Interop.Office.dll

     文件       1277  2018-04-13 14:18  Statisticstool\Statisticstool\obj\Debug\Statisticstool.csproj.FileListAbsolute.txt

     文件       4608  2018-03-29 09:58  Statisticstool\Statisticstool\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll

     文件       5420  2016-11-28 09:11  Statisticstool\Statisticstool\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       6877  2017-01-10 16:20  Statisticstool\Statisticstool\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件        400  2016-08-04 16:04  Statisticstool\Statisticstool\obj\x86\Debug\GenerateResource.read.1.tlog

     文件        786  2016-08-04 16:04  Statisticstool\Statisticstool\obj\x86\Debug\GenerateResource.write.1.tlog

     文件       1704  2016-10-19 10:46  Statisticstool\Statisticstool\obj\x86\Debug\StatisticsCool.csproj.FileListAbsolute.txt

     文件       1138  2016-10-19 10:46  Statisticstool\Statisticstool\obj\x86\Debug\StatisticsCool.csproj.ResolveComReference.cache

     文件       1919  2017-01-10 16:22  Statisticstool\Statisticstool\obj\x86\Debug\Statisticstool.application

     文件       3640  2017-01-10 16:22  Statisticstool\Statisticstool\obj\x86\Debug\Statisticstool.csproj.FileListAbsolute.txt

     文件        984  2017-01-10 16:22  Statisticstool\Statisticstool\obj\x86\Debug\Statisticstool.csproj.GenerateResource.Cache

     文件        922  2017-01-10 16:22  Statisticstool\Statisticstool\obj\x86\Debug\Statisticstool.csproj.ResolveComReference.cache

     文件     212480  2017-01-10 16:22  Statisticstool\Statisticstool\obj\x86\Debug\Statisticstool.exe

     文件       3488  2017-01-10 16:22  Statisticstool\Statisticstool\obj\x86\Debug\Statisticstool.exe.manifest

     文件      36352  2017-01-10 16:22  Statisticstool\Statisticstool\obj\x86\Debug\Statisticstool.pdb

     文件        180  2017-01-10 16:22  Statisticstool\Statisticstool\obj\x86\Debug\Statisticstool.Properties.Resources.resources

     文件      93420  2017-01-10 16:22  Statisticstool\Statisticstool\obj\x86\Debug\Statisticstool.StatisticsForm.resources

     文件       4608  2017-01-10 14:43  Statisticstool\Statisticstool\obj\x86\Debug\TempPE\Properties.Resources.Designer.cs.dll

     文件        685  2018-03-29 09:30  Statisticstool\Statisticstool\Program.cs

     文件       1360  2016-07-22 13:36  Statisticstool\Statisticstool\Properties\AssemblyInfo.cs

     文件       2868  2018-03-29 09:56  Statisticstool\Statisticstool\Properties\Resources.Designer.cs

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

评论

共有 条评论