当前位置:网站首页>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边栏推荐
- 2022 - 06 - 30 networker Advanced (XIV) Routing Policy Matching Tool [ACL, IP prefix list] and policy tool [Filter Policy]
- PR notes:
- Typora charges, WTF? Still need support
- Rd file name conflict when extending a S4 method of some other package
- FPGA learning notes: vivado 2019.1 project creation
- Micro service knowledge sorting - cache technology
- Global and Chinese market of cyanuric acid 2022-2028: Research Report on technology, participants, trends, market size and share
- Make a simple text logo with DW
- Parental delegation mechanism
- CesiumJS 2022^ 源码解读[7] - 3DTiles 的请求、加载处理流程解析
猜你喜欢

Use of aggregate functions

2022 Xinjiang latest road transportation safety officer simulation examination questions and answers

Don't be afraid of no foundation. Zero foundation doesn't need any technology to reinstall the computer system

Wargames study notes -- Leviathan

Test panghu was teaching you how to use the technical code to flirt with girls online on Valentine's Day 520

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

Geek Daily: the system of monitoring employees' turnover intention has been deeply convinced off the shelves; The meta universe app of wechat and QQ was actively removed from the shelves; IntelliJ pla

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

Virtual machine installation deepin system

kubernetes集群搭建efk日志收集平台
随机推荐
[effective Objective-C] - block and grand central distribution
Global and Chinese markets of lithium chloride 2022-2028: Research Report on technology, participants, trends, market size and share
Implementation of stack
Strict data sheet of new features of SQLite 3.37.0
Detailed and not wordy. Share the win10 tutorial of computer reinstallation system
PR 2021 quick start tutorial, how to create a new sequence and set parameters?
2022-06-27 advanced network engineering (XII) IS-IS overhead type, overhead calculation, LSP processing mechanism, route revocation, route penetration
Micro service knowledge sorting - cache technology
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
QT tutorial: signal and slot mechanism
2022-06-28 网工进阶(十三)IS-IS-路由过滤、路由汇总、认证、影响ISIS邻居关系建立的因素、其他命令和特性
Fingerprint password lock based on Hal Library
5. MVVM model
6006. Take out the minimum number of magic beans
Test panghu was teaching you how to use the technical code to flirt with girls online on Valentine's Day 520
Global and Chinese market of electrolyte analyzers 2022-2028: Research Report on technology, participants, trends, market size and share
February 14-20, 2022 (osgear source code debugging +ue4 video +ogremain source code transcription)
2022-06-27 网工进阶(十二)IS-IS-开销类型、开销计算、LSP的处理机制、路由撤销、路由渗透
Realize user registration and login
Global and Chinese markets for medical temperature sensors 2022-2028: Research Report on technology, participants, trends, market size and share