8684cc7b38
Fix #5 GPL
2017-04-09 11:49:13 +02:00
da3327c614
Forgotten tests sample
2017-04-03 22:43:28 +02:00
67e9aa752a
Fix #2 Implements stdin operations
...
Seems to work with stdin
2017-04-03 22:31:27 +02:00
376f585004
Removed -ansi gcc option from autotools
2017-04-03 21:12:04 +02:00
e27ad730c5
Generalization of ttail_getline() macro
2017-04-03 20:52:01 +02:00
5699d49a2e
Add a docs target to make
...
Now make has a docs target to enforce docs generation
2017-04-03 20:38:09 +02:00
04f0ddd897
Add relative date documentation to manpage
2017-04-03 20:23:38 +02:00
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
2017-04-03 20:11:35 +02:00
9586697f56
Updates in manpage & autotools
2017-03-26 16:40:03 +02:00
2f1458f3f3
Add ttail manpage
2017-03-26 16:21:06 +02:00
ed5338da15
Updated tests
2017-03-26 15:32:40 +02:00
710515fdab
Bugfix on invalid dateformat
...
Segfault was thrown when no files were found with matching date
2017-03-26 14:14:38 +02:00
bb7a4e7d65
Fix #1
...
Now ttail return an error if the whole date given in argument is not
matched by the format
2017-03-26 14:03:49 +02:00
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)
2017-03-26 13:31:56 +02:00
2283a16991
Bugfix on datemax > max date
2017-03-26 13:20:15 +02:00
1207a9f742
Better error handling
...
Add some perror calls
2017-03-19 16:32:10 +01:00
6ed34f4e0f
Tests update
2017-03-19 16:29:46 +01:00
9d5c000dfa
Bugfix & headers update
...
Deleted old argument struct tm* from search function (now using infos
stored in ttail_t.session )
2017-03-19 16:28:57 +01:00
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
2017-03-19 16:04:55 +01:00
e3e636e298
Implements support for max-date
2017-03-18 13:36:00 +01:00
3ca964c51e
Implements help & usage
2017-03-17 18:30:31 +01:00
a234df34c9
Add ttail_free() call in main
2017-03-17 18:04:54 +01:00
93415c6adb
Enhancement in ttail init checking function
...
To handle case where none of the file given as argument is readable
2017-03-17 18:01:47 +01:00
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
2017-03-17 17:52:02 +01:00
9f5cf21919
Tests + bugfix
...
Testing ttail_search_closest_files() on multiple files
2017-03-17 17:05:54 +01:00
5e5f730815
Bugfix + tests for ttail_search_files functions
2017-03-17 16:29:34 +01:00
9b99e070a9
Change utils on struct tm
...
Enhancement in comparison behavior + print function
2017-03-17 16:27:31 +01:00
533bb6b52e
Adding missing arguments to search functions
2017-03-17 15:20:07 +01:00
5f7d34f9de
[broken] Files searching function 1st implementation
...
untested
2017-03-17 15:19:23 +01:00
71dc7b9d3b
Updated the search_closest_files function
2017-03-17 14:59:54 +01:00
261248f6a7
Add some inline functions + utility function
...
Set some function inlune and implement an utility function
for file searching functions.
2017-03-10 00:04:19 +01:00
e371b34f7d
Make some arg const + add autoconf check
2017-03-09 23:21:56 +01:00
5ccb971b71
Implement the _ttail_search_file_sorted() function
...
Telling if the logfile array is sorted
2017-03-09 16:50:28 +01:00
a01866eea7
Implements a struct tmp comparison function
2017-03-09 16:49:46 +01:00
55b331a15e
Add tests on ttail_logline2date() function
2017-03-09 16:14:13 +01:00
e1391139ab
Add setters for RE flags and use them
...
ttail_set_flag_re_ex() and ttail_set_flag_re_ci()
2017-03-09 16:12:44 +01:00
876cc00dec
Bugfixes in logfile minmax + tests update
2017-03-09 13:45:34 +01:00
e2d2d7f0db
ttail_logline2date() implementation
2017-03-09 13:00:07 +01:00
a4c65684bf
Implement & use a ttail_set_fmt() + tests
2017-03-09 12:41:32 +01:00
cacdfc3534
Memory leak fixes
2017-03-09 00:12:24 +01:00
5de36b3ecc
Implements logline subst + tests
2017-03-08 23:41:26 +01:00
38d7ad4d90
Add regex flags support
...
For extended & case insensitive regex
2017-03-08 23:40:35 +01:00
defd1864d6
Add doxygen support
2017-03-08 19:58:30 +01:00
ce41eddb7a
Add another prefix subst method + tests
...
Now we can specify a constant length to cut
2017-03-08 18:36:41 +01:00
b0b9e0a77e
Move options declaration + warn fixes
2017-03-08 14:43:44 +01:00
89739fc1e6
**temporary commit**
2017-03-06 22:36:17 +01:00
92d5f72ddc
Bugfix + tests
2017-03-06 21:00:11 +01:00
01c295d459
Code cleaning, updated tests + getline wrapper
...
The getline wrapper will allow to use getline without calling malloc
and free all the time
2017-03-06 18:45:30 +01:00
b74ee6957f
Implemented 2 utility functions + tests
2017-03-06 17:58:29 +01:00
7088bcae86
Deleted olf stuff
2017-03-06 17:58:04 +01:00