# LogViewer **Repository Path**: endlesshh/LogViewer ## Basic Information - **Project Name**: LogViewer - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-08-22 - **Last Updated**: 2024-08-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 中文用户请点击 [中文说明](README_CN.md) # LogViewer - This is a general log viewer. It can parse the log files by providing regular expression configuration. - It supports several log format, such as spring-boot, Android, iOS, Visual studio, etc. - ***Theoretically, this tool can be used to analyze any log format as long as you write regular expressions for it***. # Function Point - 1. Config the regular expression(REGULAR) in ini configuration files, and then, set the result map in REGMAP, then the log files can be analyzed and displayed. - 2. Can filter the log according to machine / Process Id / Thread Id, log level, log text etc. - 3. Can calculate and get the elapse from the same thread of adjacent logs, thus it is able to identify the performance issue quickly. - 4. Can sort according to any column. - 5. Can open Visual Studio and identify the source code by double clicking the log item, only if there is a source filename and line number in logs. # Log Configuration - 1.Sample file [Standard-SpringBoot.ini](x64/Release/Dsh-SpringBoot.ini) , the log file is [spring log demo](demos/dsh-springdemo.log), can get logs from multi servers by [distributed shell](https://github.com/fishjam/dsh) . - 2.COMMON - REGULAR : defines the regular expression for a log. [Regex Match Tracer](http://www.regex-match-tracer.com/) is recommended for writing and validating RegEx. - TIME_FORMAT : define the date and time format, now only support 4 format(ref sample). - OPEN_COMMAND: define the open source file and locate line position command in other IDE(just need support file and line), example: [Open *.go file in goland](x64/Release/GoLang.ini#L11) - 3.REGMAP : define the regular result and log part's correspondence. - 4.LEVELMAP: define the log level's correspondence. # Use [Regex Match Tracer](http://www.regex-match-tracer.com/) to analyze and edit regular configurations - 1. Refer [Standard-SpringBoot.ini](https://github.com/fishjam/LogViewer/blob/master/x64/Release/Dsh-SpringBoot.ini) and [distributed spring log demo](https://github.com/fishjam/LogViewer/blob/master/demos/dsh-springdemo.log) - 2. F3 to match ![Regex Match Tracer Demo](doc/RegexMatchTracer.png) # TODO - [ ] Support pipe source, and so it can support real-time log(tail -f xxx | adb logcat | idevicelogsys | etc.) # Main UI ![main](doc/main.png)