Yann Weber
3e5304bf91
Fix #11
Not 100% sur of implementation. And the feature seems a bit useless..
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
014d5ffb1f
Changed headers of _ttail_file_(next|start)_line()
7 роки тому
Yann Weber
e92e62046e
Renaming _ttail_file_search_from_end()
7 роки тому
Yann Weber
6734c8ad36
Preparing autoformat detection on loglines
7 роки тому
Yann Weber
8684cc7b38
Fix #5 GPL
7 роки тому
Yann Weber
e27ad730c5
Generalization of ttail_getline() macro
7 роки тому
Yann Weber
710515fdab
Bugfix on invalid dateformat
Segfault was thrown when no files were found with matching date
7 роки тому
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 роки тому
Yann Weber
2283a16991
Bugfix on datemax > max date
7 роки тому
Yann Weber
1207a9f742
Better error handling
Add some perror calls
7 роки тому
Yann Weber
9d5c000dfa
Bugfix & headers update
Deleted old argument struct tm* from search function (now using infos
stored in ttail_t.session )
7 роки тому
Yann Weber
e3e636e298
Implements support for max-date
7 роки тому
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 роки тому
Yann Weber
9f5cf21919
Tests + bugfix
Testing ttail_search_closest_files() on multiple files
7 роки тому
Yann Weber
5e5f730815
Bugfix + tests for ttail_search_files functions
7 роки тому
Yann Weber
533bb6b52e
Adding missing arguments to search functions
7 роки тому
Yann Weber
5f7d34f9de
[broken] Files searching function 1st implementation
untested
7 роки тому
Yann Weber
71dc7b9d3b
Updated the search_closest_files function
7 роки тому
Yann Weber
261248f6a7
Add some inline functions + utility function
Set some function inlune and implement an utility function
for file searching functions.
7 роки тому
Yann Weber
5ccb971b71
Implement the _ttail_search_file_sorted() function
Telling if the logfile array is sorted
7 роки тому
Yann Weber
876cc00dec
Bugfixes in logfile minmax + tests update
7 роки тому
Yann Weber
89739fc1e6
**temporary commit**
7 роки тому
Yann Weber
92d5f72ddc
Bugfix + tests
7 роки тому
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 роки тому
Yann Weber
b74ee6957f
Implemented 2 utility functions + tests
7 роки тому
Yann Weber
2ff86aadef
File spliting
7 роки тому
Yann Weber
fd6a8054ac
Bugfixes
7 роки тому
Yann Weber
26f51ae8a6
Started to implement file search op
7 роки тому
Yann Weber
e46400754a
Starting to write ttail_search + tests
7 роки тому