资源简介
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace ServerForClientRms
{
public class LogClass
{
log4net.ILog logInfo = log4net.LogManager.GetLogger(“loginfo“);
//logInfo.Info(“测试日志写入“);
// private static log4net.ILog log = log4net.LogManager.GetLogger(“LogClass“);
///
/// 写入日志文件
///
public void init()
{
var l = (log4net.Repository.Hierarchy.Logger)logInfo.Logger;
// l.Level = l.Hierarchy.LevelMap[“ERROR“];
string txtLogPath = string.Empty;
DateTime d = DateTime.Now;
string strFileName = d.Year.ToString() + (d.Month.ToString().Length == 1 ? (“0“ + d.
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-12-19 09:11 ServerForClientRms\
目录 0 2019-12-30 14:26 ServerForClientRms\ServerForClientRms\
目录 0 2019-12-10 08:42 ServerForClientRms\ServerForClientRms\.vs\
目录 0 2019-12-10 08:42 ServerForClientRms\ServerForClientRms\.vs\ServerForClientRms\
目录 0 2019-12-10 08:42 ServerForClientRms\ServerForClientRms\.vs\ServerForClientRms\v14\
文件 3584 2019-12-10 08:42 ServerForClientRms\ServerForClientRms\.vs\ServerForClientRms\v14\.suo
目录 0 2019-12-19 10:25 ServerForClientRms\ServerForClientRms\Common\
文件 827 2019-12-10 08:39 ServerForClientRms\ServerForClientRms\Common\EnumMachineError.cs
文件 6537 2019-12-30 13:38 ServerForClientRms\ServerForClientRms\Common\ModbusCommon.cs
文件 6118 2019-12-30 14:26 ServerForClientRms\ServerForClientRms\Common\TextFile1.txt
文件 8494 2019-12-23 13:51 ServerForClientRms\ServerForClientRms\Common\ValidateStatus.cs
目录 0 2019-12-10 08:36 ServerForClientRms\ServerForClientRms\Dao\
文件 10441 2019-12-30 10:51 ServerForClientRms\ServerForClientRms\Dao\InsertDao.cs
文件 4933 2019-12-10 08:39 ServerForClientRms\ServerForClientRms\Dao\InsertRecipe.cs
文件 1871 2019-12-10 08:39 ServerForClientRms\ServerForClientRms\Dao\UserDao.cs
文件 2479 2019-12-10 08:39 ServerForClientRms\ServerForClientRms\LogClass.cs
目录 0 2019-12-10 08:36 ServerForClientRms\ServerForClientRms\Model\
文件 15550 2019-12-10 08:39 ServerForClientRms\ServerForClientRms\Model\BenMachine.cs
文件 6566 2019-12-10 08:39 ServerForClientRms\ServerForClientRms\Model\MachineState.cs
文件 4343 2019-12-10 08:39 ServerForClientRms\ServerForClientRms\MyBytes.cs
文件 953 2019-12-10 08:39 ServerForClientRms\ServerForClientRms\Program.cs
目录 0 2019-12-10 08:36 ServerForClientRms\ServerForClientRms\Properties\
文件 1455 2019-12-10 09:06 ServerForClientRms\ServerForClientRms\Properties\AssemblyInfo.cs
文件 4202 2019-12-24 15:21 ServerForClientRms\ServerForClientRms\ServerForClientRms.csproj
文件 227 2019-07-02 18:19 ServerForClientRms\ServerForClientRms\ServerForClientRms.csproj.user
文件 33288 2019-12-30 14:25 ServerForClientRms\ServerForClientRms\SocketController.cs
文件 30339 2019-12-11 09:13 ServerForClientRms\ServerForClientRms\StringUtils.cs
文件 494 2019-12-24 15:13 ServerForClientRms\ServerForClientRms\app.config
目录 0 2019-12-10 08:36 ServerForClientRms\ServerForClientRms\bin\
目录 0 2019-12-24 15:21 ServerForClientRms\ServerForClientRms\bin\Debug\
目录 0 2019-12-23 09:34 ServerForClientRms\ServerForClientRms\bin\Debug\Log\
............此处省略68个文件信息
- 上一篇:C#实例.net_经典例子400个
- 下一篇:PLC通讯松下plc
相关资源
- C#Socket网络通信实现多人聊天
- [C#]SignalR实现扫码登录(B/SC/S)源码
- C#编成Modbus TCP连接PLC寄存器读取、写
- c#socket 聊天室 五子棋 局域网PVP对战
- Modbus_TCP .net C# 通信
- C#封装modbus
- Socket网络模块Unity c#
- 基于TCP的 modbus , C#源码
- C# Winform Sockets收发Json样例
- C# 抓包分析工具 源码
- C# Socket多客户端异步通信
- C# SOCKET加密文件消息传输通信
- C#窗体基于TCP的Socket多线程通信
- 基于Socket的Winform聊天小程序
- Modbus RTU c#
- NMODBUS PDF
- C# 异步 SOCKET 服务和客户端
- C# 2015最新版NMODBUS4.0源码支持TCP/IPRT
- C#Socket通信稳定完整版类库
- C#WebSocket初学者必备
- c# socket demo 已经封装成共通
- C#简易WebSocket通信(非服务器实现)
- winform版五子棋源程序
- C# socket心跳
- modbus tcp源码(C#)
- 通过MODBUS实现PLC与上位机通讯的C#
- C#ModbusTCP客户端
- 通过MODBUS TCP读写PLC源码
- 一个简单完整的Socket通讯包括Server、
- C# WebSocket Client
评论
共有 条评论