当前位置:网站首页>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边栏推荐
- February 14-20, 2022 (osgear source code debugging +ue4 video +ogremain source code transcription)
- The 29th day of force deduction (DP topic)
- BOC protected tryptophan zinc porphyrin (Zn · TAPP Trp BOC) / copper porphyrin (Cu · TAPP Trp BOC) / cobalt porphyrin (cobalt · TAPP Trp BOC) / iron porphyrin (Fe · TAPP Trp BOC) / Qiyue supply
- Use of CMD command
- Micro service knowledge sorting - cache technology
- Global and Chinese market of two in one notebook computers 2022-2028: Research Report on technology, participants, trends, market size and share
- Use unique_ PTR forward declaration? [repetition] - forward declaration with unique_ ptr? [duplicate]
- Network security Kali penetration learning how to get started with web penetration how to scan based on nmap
- Difference between surface go1 and surface GO2 (non professional comparison)
- Micro service knowledge sorting - asynchronous communication technology
猜你喜欢
FAQs for datawhale learning!
Chapter 1: find the factorial n of n!
NFT without IPFs and completely on the chain?
Derivation of decision tree theory
Native table - scroll - merge function
2022 - 06 - 30 networker Advanced (XIV) Routing Policy Matching Tool [ACL, IP prefix list] and policy tool [Filter Policy]
BOC protected alanine porphyrin compound TAPP ala BOC BOC BOC protected phenylalanine porphyrin compound TAPP Phe BOC Qi Yue supply
HCIA-USG Security Policy
Test changes in Devops mode -- learning and thinking
Nerfplusplus parameter format sorting
随机推荐
Nerfplusplus parameter format sorting
Global and Chinese market of speed limiter 2022-2028: Research Report on technology, participants, trends, market size and share
AI enhanced safety monitoring project [with detailed code]
PR 2021 quick start tutorial, how to create a new sequence and set parameters?
Global and Chinese market of micro positioning technology 2022-2028: Research Report on technology, participants, trends, market size and share
FAQs for datawhale learning!
How to check the permission to write to a directory or file- How do you check for permissions to write to a directory or file?
QT tutorial: signal and slot mechanism
Global and Chinese markets of cast iron diaphragm valves 2022-2028: Research Report on technology, participants, trends, market size and share
2. Template syntax
Global and Chinese market of liquid antifreeze 2022-2028: Research Report on technology, participants, trends, market size and share
2022 Xinjiang latest construction eight members (standard members) simulated examination questions and answers
Part 27 supplement (27) buttons of QML basic elements
BOC protected tryptophan porphyrin compound (TAPP Trp BOC) Pink Solid 162.8mg supply - Qiyue supply
Kubernetes cluster builds efk log collection platform
1.5 learn to find mistakes first
PR 2021 quick start tutorial, how to create new projects and basic settings of preferences?
Gym welcomes the first complete environmental document, which makes it easier to get started with intensive learning!
Xctf attack and defense world crypto advanced area best_ rsa
Find a line in a file and remove it