当前位置:网站首页>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边栏推荐
- Part 28 supplement (XXVIII) busyindicator (waiting for elements)
- JMeter connection database
- Sparse matrix (triple) creation, transpose, traversal, addition, subtraction, multiplication. C implementation
- Microservice framework - frequently asked questions
- Exercises of function recursion
- 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
- 2022-06-27 advanced network engineering (XII) IS-IS overhead type, overhead calculation, LSP processing mechanism, route revocation, route penetration
- Nacos usage of micro services
- 6. Data agent object Defineproperty method
- unittest框架基本使用
猜你喜欢
AcWing 1460. Where am i?
FAQs for datawhale learning!
2.5 conversion of different data types (2)
PR FAQ: how to set PR vertical screen sequence?
Cesiumjs 2022 ^ source code interpretation [7] - Analysis of the request and loading process of 3dfiles
Xctf attack and defense world crypto master advanced area olddriver
IPv6 experiment
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 advanced area best_ rsa
NFT without IPFs and completely on the chain?
随机推荐
Professional interpretation | how to become an SQL developer
Test changes in Devops mode -- learning and thinking
Unittest framework is basically used
PR 2021 quick start tutorial, material import and management
3. Data binding
5. MVVM model
What is the difference between a kill process and a close process- What are the differences between kill process and close process?
Global and Chinese market of high purity copper foil 2022-2028: Research Report on technology, participants, trends, market size and share
Teach you how to quickly recover data by deleting recycle bin files by mistake
Acquisition and transmission of parameters in automatic testing of JMeter interface
Global and Chinese market of electrolyte analyzers 2022-2028: Research Report on technology, participants, trends, market size and share
Blue Bridge Cup: the fourth preliminary - "simulated intelligent irrigation system"
Typora charges, WTF? Still need support
Sword finger offer 30 Stack containing min function
Leetcode daily question solution: 540 A single element in an ordered array
[raid] [simple DP] mine excavation
Micro service knowledge sorting - cache technology
Pat grade B 1009 is ironic (20 points)
MySQL learning notes - single table query
2022-07-02 advanced network engineering (XV) routing policy - route policy feature, policy based routing, MQC (modular QoS command line)