Skip to content

A command line application to watch for text and log files creation and changes.

Notifications You must be signed in to change notification settings

kbbgl/logHecate

Repository files navigation

LogHecate

Create filtered log files

GitHub code size in bytes

To run:

  1. cd [PATH_TO_CLONED_DIR]/logHecate/build/libs.
  2. Run the following command:

java -jar logHecate.jar -p PATTERN -wd path/to/dir

For help, type java -jar logHecate.jar help

USAGE: logHecate [arguments]

     arguments:
      
     * -wd, --wd, --watchdir, -watchdir
         Absolute path to the directory to watch for file changes.
         
     * -p, --p, --pattern, -pattern
               Pattern to search for within -watchdir.
        
       -od, --od, --outputdir, -outputdir
         Absolute path to the created log. Default is path where app is run.
         
       -h, --h, help, -help, --help
         Displays help information.

     * indicates mandatory arguments          

Example:

To fetch logs that might contain errors

UNIX:
java -jar logHecate.jar -p error -wd /Users/admin/some/software/logs
-of /Users/admin/temp/output.log

Windows:
java -jar logHecate.jar -p error -wd C://some//software//logs -of C://temp//output_log.log

Limitations:
  • If you choose to specify a file path using the -of flag, make sure that the folder path has already been created.

  • Currently supports reading .txt and .log files in directory.

About

A command line application to watch for text and log files creation and changes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published