当前位置:网站首页>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边栏推荐
- 2.4 conversion of different data types
- Assign the CMD command execution result to a variable
- FAQs for datawhale learning!
- Global and Chinese market of electrolyte analyzers 2022-2028: Research Report on technology, participants, trends, market size and share
- AST (Abstract Syntax Tree)
- Test changes in Devops mode -- learning and thinking
- Micro service knowledge sorting - three pieces of micro Service Technology
- Network security Kali penetration learning how to get started with web penetration how to scan based on nmap
- 2022 Xinjiang latest road transportation safety officer simulation examination questions and answers
- Chapter 1: find the factorial n of n!
猜你喜欢

Today's work summary and plan: February 14, 2022

The 29th day of force deduction (DP topic)

Phpstudy set LAN access

Part 28 supplement (XXVIII) busyindicator (waiting for elements)
![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](/img/5b/fc776a1982e24b82984d82be6a016f.jpg)
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

PR 2021 quick start tutorial, how to create a new sequence and set parameters?

Popularize the basics of IP routing
![2022 - 06 - 30 networker Advanced (XIV) Routing Policy Matching Tool [ACL, IP prefix list] and policy tool [Filter Policy]](/img/b6/5d6b946d8001e2d73c2cadbdce72fc.png)
2022 - 06 - 30 networker Advanced (XIV) Routing Policy Matching Tool [ACL, IP prefix list] and policy tool [Filter Policy]

2.2 integer

2022-06-27 网工进阶(十二)IS-IS-开销类型、开销计算、LSP的处理机制、路由撤销、路由渗透
随机推荐
Promethus
44. Concurrent programming theory
Bright purple crystal meso tetra (4-aminophenyl) porphyrin tapp/tapppt/tappco/tappcd/tappzn/tapppd/tappcu/tappni/tappfe/tappmn metal complex - supplied by Qiyue
Teach you how to quickly recover data by deleting recycle bin files by mistake
Global and Chinese market of electrolyte analyzers 2022-2028: Research Report on technology, participants, trends, market size and share
1.5 learn to find mistakes first
About unregistered transfer login page
Phpstudy set LAN access
CesiumJS 2022^ 源码解读[7] - 3DTiles 的请求、加载处理流程解析
Global and Chinese markets of cast iron diaphragm valves 2022-2028: Research Report on technology, participants, trends, market size and share
2022-07-02 advanced network engineering (XV) routing policy - route policy feature, policy based routing, MQC (modular QoS command line)
Vscode reports an error according to the go plug-in go get connectex: a connection attempt failed because the connected party did not pro
Ruby replaces gem Alibaba image
Micro service knowledge sorting - cache technology
Xctf attack and defense world crypto master advanced area olddriver
Part 28 supplement (XXVIII) busyindicator (waiting for elements)
What is the difference between a kill process and a close process- What are the differences between kill process and close process?
PR 2021 quick start tutorial, how to create new projects and basic settings of preferences?
Exercises of function recursion
Native table - scroll - merge function