Home > Software engineering >  LogView - source of Windows system local debugging log capture tools
LogView - source of Windows system local debugging log capture tools

Time:04-01

LogView - open Windows local debugging log capture tool

Source link: https://gitee.com/lougd/logview.git
Tool link: https://gitee.com/lougd/logview/releases/v1.0.0.91



Windows platform log sniffer tools, can easily sniff laptop debugging information, including the capture system function like DbgView OutputDebugString
Output debugging information and output to the log file debugging information,
The main features of the logging tool:
1. The small green, there is only one executable file, no additional dependencies, run fast.
2. Log data saved in the memory, all provide access to concise and easy to use log statements at any time to retrieve (DbgView filtered out the rules of the data is thrown away),
3. The real time detection to specify all of the change log file folder, and real-time display to the log page,

4. Beautiful syntax highlighting shows different highlight color to distinguish the different keywords retrieval statement,
5. Support content of log data format, the log contains the json formatted data can be formatted display, such as

Software architecture
Main modules:
LogLib sub-modules: major general library components, are all the components of general dynamic library,
LogSniff sub-modules: cross-platform log olfactory TanZu, Linux system component has not yet been fully realized
LogView: the main function module, the log show layer and local log module

1. OutputDebugString debugging information capture and similar DbgView principle, through the system to create the Shared memory block access OutputDebugString output debugging content,
2. Log file detection is through the ReadDirectoryChangesW interface cooperate with the completion port to realize efficient file change detection,
3. Log display interface using notepad + + with scintilla controls, used for display of the log content and highlight the key words,
` ` `
Code to UML class diagram

Log data collection class diagram:


Logs show layer class diagram:


Use the
Don't need to install, only a green executable file, open the can use, if use log to monitor need to enter in the log file path in the configuration options,
Configuration options page: set up the log file directory, set up after the completion of the can monitor the all log files in the directory, and real-time display in the log file interface,
Debug output page: similar DbgView show program through OutputDebugString output debugging information,
Logging output file log pages: display file information,
File search page: from configuration page configuration directory of all the log file retrieval content,
Log information filtering rules:

Eg:
Keyword1//keep a single journal contains the keyword
Keyword1 & amp; & Keyword2//keep a single log contains both keyword1 and log keyword2
Keyword1 | | keyword2//keep a single journal contains keyword1 or keyword2
! Keyword//keep a single log does not contain keyword log
Keyword1 & amp; & (keyword2 | | keyword3)//keep a single journal contains keyword1 and contains keyword2 or keyword3

Build instructions
The logging tools use vs2008 compilation, through vs2008. Open the root directory of LogSniff SLNS file can be compiled, detected

CodePudding user response:




  • Related