Yann Weber
6e006b35bd
Add comment for set_date_relative + ttail_check.h refactoring
преди 7 години
Yann Weber
768ac367d9
Fix #12 sorting options in help text
But not by alphabetical order :P
преди 7 години
Yann Weber
bbaa6b84b4
Fix starts for #11
Adds the option -P --permissive.
Starts implementation for logfiles.
Now -P flag make ttail handle invalid files. When invalid file given the
minmax function set the file pointer and the minmax array to NULL.
May introduce bugs if the binary search function does not handles "holes"
in fp array or in minmax array...
преди 7 години
Yann Weber
7dbc99e4a0
Fixing issue #4 for logfiles
Not done for stdin
преди 7 години
Yann Weber
fe382fff5f
ttail_format_guess() do not take ttail_t* as argument
Making this function usable by logfiles and stdin format autodetection
преди 7 години
Yann Weber
3a4fe6be94
Add tests for _ttail_norm_dates
преди 7 години
Yann Weber
8684cc7b38
Fix #5 GPL
преди 7 години
Yann Weber
5e527d0f3b
Fix #3 Add support for relative dates
Date formats
Two date formats are allowed for dates arguments (-d , -m) :
- the same than in the logfile
- relative from now prefixing the argument with '#-' and given a unit
- y : year
- M : Month
- d : day
- h : hour
- m : min
- s : sec
преди 7 години
Yann Weber
782f70e7fc
Enhancement & changes in arguments parsing
add a -h --help option, deleted -l --logfile options
+ spliting the ttail_search_closest() & ttail_search_print_res() functions
преди 7 години
Yann Weber
3ca964c51e
Implements help & usage
преди 7 години
Yann Weber
e1391139ab
Add setters for RE flags and use them
ttail_set_flag_re_ex() and ttail_set_flag_re_ci()
преди 7 години
Yann Weber
a4c65684bf
Implement & use a ttail_set_fmt() + tests
преди 7 години
Yann Weber
38d7ad4d90
Add regex flags support
For extended & case insensitive regex
преди 7 години
Yann Weber
ce41eddb7a
Add another prefix subst method + tests
Now we can specify a constant length to cut
преди 7 години
Yann Weber
b0b9e0a77e
Move options declaration + warn fixes
преди 7 години
Yann Weber
2a80bded28
File splitting
преди 7 години
Yann Weber
ab53a6a6b9
Implemented ttail_init_check() + tests
преди 7 години
Yann Weber
038730b980
Implements ttail_set_date() + tests
преди 7 години
Yann Weber
fa815adb0c
Add date guessing feature + tests
преди 7 години
Yann Weber
90eede17bd
Enhancement bugfix + tests update
преди 7 години
Yann Weber
87bba12a12
Add tests + bugfixes
преди 7 години
Yann Weber
d0d2f7220d
Bugfix + enhancement
преди 7 години
Yann Weber
7dd93d8688
Bugfix & enhancement
преди 7 години
Yann Weber
9c02dd6800
Initial commit
преди 7 години
Yann Weber
fbd0a59a12
bad
преди 7 години