当前位置:网站首页>Get log4net log file in C - get log4net log file in C
Get log4net log file in C - get log4net log file in C
2022-07-03 20:09:00 【fyin1314】
problem :
This is my configuration for log4net: This is my right to log4net Configuration of :
<log4net> <appender name="MyLogger" type="log4net.Appender.RollingFileAppender"> <file value="MyLog.log" /> <appendToFile value="true" /> <rollingStyle value="Size"/> <maxSizeRollBackups value="20"/> <maximumFileSize value="1000KB"/> <layout type="log4net.Layout.PatternLayout"> <param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss},%p,%m%n" /> </layout> </appender> <root> <level value="DEBUG" /> <appender-ref ref="MyLogger" /> </root></log4net>In C# I'm trying to get the name of the log file (which is MyLog.log). stay C# in , I tried to get the name of the log file ( namely MyLog.log).I googled and tried many things but failed to do so. I use Google I searched and tried many things , But failed to do so .Any help? Is it helpful ?
Thanks! thank you !
Solution :
Reference resources : https://stackoom.com/en/question/5dZN边栏推荐
- Gym welcomes the first complete environmental document, which makes it easier to get started with intensive learning!
- Machine learning support vector machine SVM
- Assign the CMD command execution result to a variable
- Global and Chinese market of full authority digital engine control (FADEC) 2022-2028: Research Report on technology, participants, trends, market size and share
- Sword finger offer 30 Stack containing min function
- 7. Data broker presentation
- Ae/pr/fcpx super visual effects plug-in package fxfactory
- Parental delegation mechanism
- Microservice framework - frequently asked questions
- Microservice knowledge sorting - search technology and automatic deployment technology
猜你喜欢

Make a simple text logo with DW

Machine learning support vector machine SVM

2.6 formula calculation

2022-06-27 advanced network engineering (XII) IS-IS overhead type, overhead calculation, LSP processing mechanism, route revocation, route penetration

PR 2021 quick start tutorial, how to create new projects and basic settings of preferences?
![Oak-d raspberry pie cloud project [with detailed code]](/img/34/76b461bf03fba373da5b5898c5204c.jpg)
Oak-d raspberry pie cloud project [with detailed code]

Teach you how to quickly recover data by deleting recycle bin files by mistake

Bright purple crystal meso tetra (4-aminophenyl) porphyrin tapp/tapppt/tappco/tappcd/tappzn/tapppd/tappcu/tappni/tappfe/tappmn metal complex - supplied by Qiyue

原生表格-滚动-合并功能
![Cesiumjs 2022 ^ source code interpretation [7] - Analysis of the request and loading process of 3dfiles](/img/70/6fd00146418e5d481e951d51428990.png)
Cesiumjs 2022 ^ source code interpretation [7] - Analysis of the request and loading process of 3dfiles
随机推荐
Kubernetes cluster builds efk log collection platform
Find a line in a file and remove it
MySQL learning notes - single table query
2022-07-02 网工进阶(十五)路由策略-Route-Policy特性、策略路由(Policy-Based Routing)、MQC(模块化QoS命令行)
Test changes in Devops mode -- learning and thinking
2.3 other data types
Chapter 1: find all factorial sums, Grand Prix site unified programming, three factorial sums, graphic point scanning, recursive factorial n of n!, Find the factorial n of n!, King Shehan miscalculate
Xctf attack and defense world crypto master advanced area olddriver
Use of CMD command
Wargames study notes -- Leviathan
Basic command of IP address configuration ---ip V4
About unregistered transfer login page
Meso tetra [P - (p-n-carbazole benzylidene imino)] phenylporphyrin (tcipp) /eu (tcipp) [pc( α- 2-oc8h17) 4] and euh (tcipp) [pc (a-2-oc8h17) 4] supplied by Qiyue
6. Data agent object Defineproperty method
Use of aggregate functions
Plan for the first half of 2022 -- pass the PMP Exam
BOC protected alanine zinc porphyrin Zn · TAPP ala BOC / alanine zinc porphyrin Zn · TAPP ala BOC / alanine zinc porphyrin Zn · TAPP ala BOC / alanine zinc porphyrin Zn · TAPP ala BOC supplied by Qiyu
Bright purple crystal meso tetra (4-aminophenyl) porphyrin tapp/tapppt/tappco/tappcd/tappzn/tapppd/tappcu/tappni/tappfe/tappmn metal complex - supplied by Qiyue
Sword finger offer 30 Stack containing min function
7. Data broker presentation