This article is a mirror article of machine translation, please click here to jump to the original article.

View: 19825|Reply: 2

[Plugin Library] Common.LoggingLog configuration

[Copy link]
Posted on 5/26/2019 9:24:38 PM | | | |
preface

In a project, we often record logs to see how the project is running in the production environment. This article records the configuration of logs.



Environment & Tools


>Windows 10 system

>VS 2017


Text

1: Create a new console application.

2: Refer to the following dll, note that the Common.Logging.Log4Net1215 version is the same as the log4net version







3: Create a new conf folder, add the log4net.config file, and change the properties to Always copy.







4: Paste the relevant configuration in the log4net.config file



5: Configure in App.config




6: Paste the following code and F5 runs.



7: You can see the Log folder in the Debug directory. The log file I just wrote is inside.





Epilogue

It's cool, I don't want to explain it in detail, just follow the matching and you're done.





Previous:Request aborted: Failed to create an SSL/TLS secure channel solution
Next:Pros and cons of programming in Go
Posted on 5/28/2019 9:34:39 AM |
It's cool
Posted on 12/7/2021 10:42:01 AM |
It's cool
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com