Open Source Log View software Log2window Introduction

Source: Internet
Author: User
Tags log4net

Software information

Log2window is an open-source log query software.
Supports logging components such as log4net, Nlog, EventLog, log4j, and Log4cxx.
The Project homepage is: Https://github.com/alanthinker/Log2Window
Domestic: Http://chess.stk.me/chess/download/Log2Window/Log2Window.zip

The software is adapted from Log2console and completely rewrites the internal logic. Significantly improved performance and stability, fixed a large number of logic errors, and added new features.

function Introduction

Log2window can process more than 1 million records per second on an ordinary PC. For example, according to the log name, message content, log level and other conditions such as filtering. Delete some names of logs, and so on. When the new log refreshes too fast, you can pause the refresh of the new log for viewing. (The background is still receiving logs and will be displayed when the resume is paused)
Log2window the ability to receive new logs is also very good. You can receive more than 100,000 records per second without any delay or blocking.

Log2window can receive both the TCP and UDP logs sent on the network, and the contents of the log files can be monitored in real time. (both require that the log be saved in log4j XML format.)

How to use:

The software automatically pops up the receiver configuration interface the first time the software is opened.

It is recommended to add receiver for the TCP protocol.
For Nlog, configure a TCP target and log it to this target.

<name= "Tcpoutlet"  xsi:type= "Nlogviewer"  encoding = "Utf-8" Address = "tcp://localhost:4505" />

For log4net, you need to use a custom appender.  The source code for the Appender is already included in Exampleproject\testlog4net project in the Log2window installation directory. The custom Appender sends logs asynchronously without blocking the business logic because of network problems. And 10,000 logs can be cached when a message cannot be sent. Wait for the network to be restored before sending. (Users can modify this Appender code to adjust the number of caches.)

The Appender configuration for log4net is as follows:

<Appendername= "Tcpappender"type= "AlanThinker.MyLog4net.TcpAppender">     <remoteaddressvalue= "127.0.0.1" />     <RemotePortvalue= "4505" />     <encodingvalue= "Utf-8"></encoding>     <Layouttype= "AlanThinker.MyLog4net.MyXmlLayoutSchemaLog4j" >     <!--Set These switch to False to Impove performance. -     <Locationinfovalue= "false" />     <Show_hostname_appdomain_identity_usernamevalue= "false" />     <SHOWNDCvalue= "false" />     <showpropertiesvalue= "false" />     </Layout> </Appender> 

Open Source Log View software Log2window Introduction

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.