Yann Weber
2b63e70596
Fix #20
set_relative_date was failing if the resulting date was in the previous
day.
il y a 5 ans
Yann Weber
0c4acf1fba
Fix #18
Following PR #19
il y a 5 ans
Yann Weber
abe01c0733
Add test for _ttail_file_search_from_end
And updated doxygen todo list
il y a 7 ans
Yann Weber
48280fa6d5
Bugfix in relative dates calculation
il y a 7 ans
Yann Weber
050d81aeb2
Fix #16 Write tests for _ttail_set_date_relative()
And bugfixes in _ttail_set_date_relative() bad format detection
il y a 7 ans
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...
il y a 7 ans
Yann Weber
42457370ba
Enhancement in option parsing errors
Telling getopt to produce an error message by setting opterr to 1
il y a 7 ans
Yann Weber
7dbc99e4a0
Fixing issue #4 for logfiles
Not done for stdin
il y a 7 ans
Yann Weber
fe382fff5f
ttail_format_guess() do not take ttail_t* as argument
Making this function usable by logfiles and stdin format autodetection
il y a 7 ans
Yann Weber
8684cc7b38
Fix #5 GPL
il y a 7 ans
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
il y a 7 ans
Yann Weber
bb7a4e7d65
Fix #1
Now ttail return an error if the whole date given in argument is not
matched by the format
il y a 7 ans
Yann Weber
833b2dae19
Bugfix & enhancement
Now an error is triggered if date-min > date-max
Bugfix on date-max searching (on multiple loglines with a date == date-max)
il y a 7 ans
Yann Weber
2283a16991
Bugfix on datemax > max date
il y a 7 ans
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
il y a 7 ans
Yann Weber
3ca964c51e
Implements help & usage
il y a 7 ans
Yann Weber
93415c6adb
Enhancement in ttail init checking function
To handle case where none of the file given as argument is readable
il y a 7 ans
Yann Weber
fd5d6cad18
Bugfix & function implementation
Now we have a running minimal ttail :
src/ttail -d "Mar 6 00:29" -f '%B%n%d %H:%M' -l tests/samples/1.log -l tests/samples/1.1.log
il y a 7 ans
Yann Weber
e1391139ab
Add setters for RE flags and use them
ttail_set_flag_re_ex() and ttail_set_flag_re_ci()
il y a 7 ans
Yann Weber
e2d2d7f0db
ttail_logline2date() implementation
il y a 7 ans
Yann Weber
a4c65684bf
Implement & use a ttail_set_fmt() + tests
il y a 7 ans
Yann Weber
cacdfc3534
Memory leak fixes
il y a 7 ans
Yann Weber
5de36b3ecc
Implements logline subst + tests
il y a 7 ans
Yann Weber
38d7ad4d90
Add regex flags support
For extended & case insensitive regex
il y a 7 ans
Yann Weber
ce41eddb7a
Add another prefix subst method + tests
Now we can specify a constant length to cut
il y a 7 ans
Yann Weber
b0b9e0a77e
Move options declaration + warn fixes
il y a 7 ans
Yann Weber
2a80bded28
File splitting
il y a 7 ans
Yann Weber
ab53a6a6b9
Implemented ttail_init_check() + tests
il y a 7 ans
Yann Weber
038730b980
Implements ttail_set_date() + tests
il y a 7 ans
Yann Weber
fa815adb0c
Add date guessing feature + tests
il y a 7 ans
Yann Weber
90eede17bd
Enhancement bugfix + tests update
il y a 7 ans
Yann Weber
142b959c2e
Bugfix in init re prefix
il y a 7 ans
Yann Weber
87bba12a12
Add tests + bugfixes
il y a 7 ans
Yann Weber
d0d2f7220d
Bugfix + enhancement
il y a 7 ans
Yann Weber
7dd93d8688
Bugfix & enhancement
il y a 7 ans
Yann Weber
9c02dd6800
Initial commit
il y a 7 ans
Yann Weber
fbd0a59a12
bad
il y a 7 ans