Yann Weber
3c2cfd848d
Add forgotten return value test
7 years ago
Yann Weber
0bd8dd1e1f
Fix #13 Sort files given as argument
Now ttail is able to sort logfiles given as arguement.
The sort function _ttail_file_sort place files with no valid date to the
end of the file list and is able to detect if some files overlaps.
No tests written...
7 years ago
Yann Weber
489f5b801c
Enhancement & bugfix in #11 solution
7 years ago
Yann Weber
3e5304bf91
Fix #11
Not 100% sur of implementation. And the feature seems a bit useless..
7 years ago
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 years ago
Yann Weber
7dbc99e4a0
Fixing issue #4 for logfiles
Not done for stdin
7 years ago
Yann Weber
014d5ffb1f
Changed headers of _ttail_file_(next|start)_line()
7 years ago
Yann Weber
e92e62046e
Renaming _ttail_file_search_from_end()
7 years ago
Yann Weber
6734c8ad36
Preparing autoformat detection on loglines
7 years ago
Yann Weber
8684cc7b38
Fix #5 GPL
7 years ago
Yann Weber
e27ad730c5
Generalization of ttail_getline() macro
7 years ago
Yann Weber
710515fdab
Bugfix on invalid dateformat
Segfault was thrown when no files were found with matching date
7 years ago
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)
7 years ago
Yann Weber
2283a16991
Bugfix on datemax > max date
7 years ago
Yann Weber
1207a9f742
Better error handling
Add some perror calls
7 years ago
Yann Weber
9d5c000dfa
Bugfix & headers update
Deleted old argument struct tm* from search function (now using infos
stored in ttail_t.session )
7 years ago
Yann Weber
e3e636e298
Implements support for max-date
7 years ago
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
7 years ago
Yann Weber
9f5cf21919
Tests + bugfix
Testing ttail_search_closest_files() on multiple files
7 years ago
Yann Weber
5e5f730815
Bugfix + tests for ttail_search_files functions
7 years ago
Yann Weber
533bb6b52e
Adding missing arguments to search functions
7 years ago
Yann Weber
5f7d34f9de
[broken] Files searching function 1st implementation
untested
7 years ago
Yann Weber
71dc7b9d3b
Updated the search_closest_files function
7 years ago
Yann Weber
261248f6a7
Add some inline functions + utility function
Set some function inlune and implement an utility function
for file searching functions.
7 years ago
Yann Weber
5ccb971b71
Implement the _ttail_search_file_sorted() function
Telling if the logfile array is sorted
7 years ago
Yann Weber
876cc00dec
Bugfixes in logfile minmax + tests update
7 years ago
Yann Weber
89739fc1e6
**temporary commit**
7 years ago
Yann Weber
92d5f72ddc
Bugfix + tests
7 years ago
Yann Weber
01c295d459
Code cleaning, updated tests + getline wrapper
The getline wrapper will allow to use getline without calling malloc
and free all the time
7 years ago
Yann Weber
b74ee6957f
Implemented 2 utility functions + tests
7 years ago
Yann Weber
2ff86aadef
File spliting
7 years ago
Yann Weber
fd6a8054ac
Bugfixes
7 years ago
Yann Weber
26f51ae8a6
Started to implement file search op
7 years ago
Yann Weber
e46400754a
Starting to write ttail_search + tests
7 years ago