Skip to content

This is a zig tool to seq files in a dir with a three digit ascii extension. FFF

License

Notifications You must be signed in to change notification settings

BearzRobotics/hexseq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hexseq

This is a zig tool to seq files in a dir with a three digit ascii extension. FFF

By default hexseq will rollover the log dir once any one file reaches .FFF. If no directory is given with the --rollover=move , the default is to rename the dir given with the same hex extension.

e.g. If I pass in /var/log and a file reaches .FFF it will rollover the log directory into /var/log.000 ... log.FFF (If you make it that far IDK)

Zig version 0.14.0

Running

Example of how to run the program

hexseq -d --logdir /var/dlogs/

Capture the output

hexseq -d --logdir /var/dlogs/ 2&> hexseq.log

building

zig build

Release build

You have three optoions for release builds small, fast, and safe

These all produce widly different binary sizes

zig build --release=small

--release=small Optimize for binary size (aggressively removes unused code, more inlining, less debug info)

--release=safe Optimize for safety (keeps runtime checks like integer overflow, bounds checking, etc.)

--release=fast Optimize for speed (turns off most runtime safety checks, prioritizes raw performance)

testing

zig build test

Should be done

[] Make it so the program can dected how many log dirs there are for rollover. By default it's hardcoded to just add .000 instead of looking. -- Can be over come by passing --rollover=move

About

This is a zig tool to seq files in a dir with a three digit ascii extension. FFF

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages