Log4net Self-Enable debug1. Set Enable parameters:2. Set the Enable path:Type= "System.Diagnostics.TextWriterTraceListener"Initializedata= "C:\TEMP\log4net.txt"/>Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced. Log4net to open its own debug log
The first step:Create a new public class library common, add CustomLog4jLogger.cs and reference Log4net.dllStep Two:In the class library where logging is required, refer to the Common class library, called:Customlog4jlogger.loginfo ("xxxxxx");Step Three:Add Log4net.config (in the attachment) to the program that calls the class library and reference Log4net.dllProgram calls: static void Main (string[] args) { try {
1. Configuring the Log4net.config File2. Project Start-Up officeLog4net. Config.XmlConfigurator.Configure ();3.assemblyinfo.cs[Assembly:log4net. Config.xmlconfigurator (configfile = "Log4net.config", Watch = True)]4. Call Log4netLog4net. ILog MyLogger = log4net. Logmanager.getlogger ("message");Mylogger.info ("hello!");Simple four-step configuration success The first time to write a blog park, have not mastered the layout of good-looking, and make unr
Apache Log Viewer is a relatively good log analysis software abroad, there is no Chinese version of the download. Analysis interface as shown:
You can customize the view of the breakdown information, such as IP, address, access date, access page, access status, routing address, browse identification (User Agent) as shown: (Open step: Edit->preferences->c
You can use the Event Log Service in the event viewer to view the computer's on and off time. Because the Event Log service starts and closes along with the computer, and records the event log.
It is necessary to introduce two IDCs: 6006 and 6005. In the event viewer, an
1: First download Log4net.dll, through the online direct download or nuget download DLL can be. Then take the downloaded Nlog.dll, nlog,extension.dll join the project reference.2: Configure the Webconfig file: 3: Write log:private static readonly ILog Loggerdal = Logmanager.getlogger ("Dallogger");Loggerdal.info ("Info log");Loggerdal.error ("Trace log");How to use log4
Installation process:Add laterContent reference: http://udn.yyuap.com/thread-54591-1-1.html; Https://www.cnblogs.com/yanbinliu/p/6208626.htmlThe following issues were encountered during the build test:1.FileBeat journal "Dial TCP 127.0.0.1:5044:connectex:no connection could be made because the target machine actively refused ItResolution process:A: Modify the Filebeat folder in the Filebeat.yml file, the direct output of the results to Elasticsearch, the test elasticsearch can view the data, to
TM Chat Log viewer (hint: Register 1 sets, can be used on 3 pcs) The software can view TM chat records without a password.
Use the method, run directly, then select the TM number you want to read, and then click the number you want to view the chat record. The software can see the previous chat record of installing the software.
Note: The software must be installed to the target number to use the computer
The SharePoint ULS Log Viewer project description is a Windows application that makes it easier to view SharePoint ULS log files. Supports filtering and simple views.Information: This is a WPF application, which is supported by LINQ. The current version has the following features: 1. Convert and open multiple SharePoint ULS logs (if multiple or merged logs are se
started with the following SQL statement:SELECT * FROM Msdb.dbo.sysjobhistorywhere step_id=0 and job_id= (select job_id from msdb.dbo.sysjobs where [name]= ' Job name ')and run_dateBecause I added a step_id query condition, so the first time cleaning did not clean up, the actual amount of data is still very large, because only delete a state of the2, to delete:Delete from Msdb.dbo.sysjobhistorywhere job_id= (select job_id from msdb.dbo.sysjobs where [name]= ' Job name ')and run_dateBecause my j
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.