cd [PATH_TO_CLONED_DIR]/logHecate/build/libs
.- 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
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
-
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.