Toparvion / analog

🔎 Flexible web-based real-time log viewer
MIT License
19 stars 5 forks source link

Support flexible (selective) directory scanning #27

Open Toparvion opened 4 years ago

Toparvion commented 4 years ago

At the moment AnaLog can scan only concrete directory paths.

It would be convenient to support some kind of templated paths in scanLocations/directories parameter. For example /projects/*/log/*.log which means "include all log files of all applications under projects directory wherever they are buried".

For the reference we can look at the engine behind .ignore plugin of IntelliJ IDEA:

This supports shell glob matching, relative path matching, and negation (prefixed with !). Only one pattern per line.