https://github.com/tiyee/filewatcher
A tool for monitoring the changes of files what designed by modern c++
https://github.com/tiyee/filewatcher
Last synced: about 1 year ago
JSON representation
A tool for monitoring the changes of files what designed by modern c++
- Host: GitHub
- URL: https://github.com/tiyee/filewatcher
- Owner: tiyee
- License: mit
- Created: 2019-06-23T23:50:24.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-11T22:41:58.000Z (about 7 years ago)
- Last Synced: 2025-02-17T09:15:36.041Z (over 1 year ago)
- Language: C++
- Homepage:
- Size: 45.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FileWatcher
A tool for monitoring file changes
# Getting Started
1. 安装cmake,Macos:`brew install cmake` centos: `sudo yum install cmake`
2. 安装编译器,Macos自带了clang++,linux:`sudo yum -y install gcc gcc-c++`
# Build and Test(目前只支持unix)
1. `git clone git@github.com:tiyee/FileWatcher.git`
2. `cd FileWatcher`
3. `mkdir build && cd build`
4. `cmake ..`
5. `make`
6. `cd ..`
7. ```./bin/FileWatcher -f `pwd`/logs/test.log -f `pwd`/logs/test2.log```
> 因为是测试,所以log日志也会在控制台输出,实际应该讲log写入文件,控制台只输出文件变化,供bash捕捉
# Feature
1.linux支持(正在进行)