Commit Graph

159 Commits

Author SHA1 Message Date
Timothy Stack
2aad7985a6 [build] opt build
Defect Number:
    Reviewed By:
   Testing Done:
2020-11-25 14:46:39 -08:00
Timothy Stack
8e629b166a [build] some more compiler profiling
Defect Number:
    Reviewed By:
   Testing Done:
2020-11-19 21:36:51 -08:00
Timothy Stack
51d1204a96 [arc] add content hash to archive temp dir and tech debt 2020-11-17 10:04:23 -08:00
Timothy Stack
563fa94d39 [log] fix fill character for file name prefix 2020-10-29 15:33:15 -07:00
Timothy Stack
9bfe1f8319 [cmds] include filename in copied log lines when shown
Fixes #789
2020-10-28 22:56:58 -07:00
Timothy Stack
df3df8369c [session] stages 2020-10-28 21:24:23 -07:00
Timothy Stack
5e42b4cb8a [debt] include cleanup 2020-10-28 21:23:46 -07:00
Timothy Stack
3b0168025d [cmds] add support for hiding files 2020-10-28 21:18:57 -07:00
Timothy Stack
d8a083f0fe [filters] add :toggle-filtering command 2020-10-02 21:17:52 -07:00
Timothy Stack
ce0383dee1 [build] fix some warnings 2020-09-11 23:10:11 -07:00
Timothy Stack
a3264fb104 [log_format] fix issues with year rollover
Defect Number:
    Reviewed By:
   Testing Done:
2020-09-08 22:11:32 -07:00
Timothy Stack
4fa4a7057b [log_format] gracefully handle a misconfigured log format
Fixes #742
2020-08-27 13:42:10 -07:00
Timothy Stack
2a37a9ce7f [build] fix the previous checkin 2020-08-17 21:55:55 -07:00
Timothy Stack
45630545ed [lss] fix identifier highlighting 2020-08-17 21:31:23 -07:00
Timothy Stack
e442f84e80 [textview] pause loading of files by pressing =
Fixes #670
2019-07-30 06:28:42 -07:00
Timothy Stack
b81b35c866 [log-view] in time-offset mode, show negative times for messages before the first mark
Prototype for #395
2019-06-26 21:52:40 -07:00
Timothy Stack
02c53976b4 Some refactoring for the line buffer and other cleanups
Fixes #649
2019-06-15 06:32:02 -07:00
Timothy Stack
06d1098211 [config] initial support for themes
For #422

Still more to do
2019-05-03 13:50:19 -07:00
Timothy Stack
21c5c52843 [format] allow multiple log format patterns per log file
This tries to address #624
2019-03-13 16:37:41 -07:00
Timothy Stack
43243c7ba3 [build] revive freebsd release build
Some misc fixes for filtering as well
2019-02-17 07:40:35 -08:00
Timothy Stack
7dfa0e9dd4 [textview] highlights that start from the beginning of the line are not working in the log view
The log view prefixes lines with some extra characters and they
were mistakenly being included when performing the highlight
regex.

Fixes #590
2019-01-01 08:24:02 -08:00
Timothy Stack
a63b6a199c [filter] in the filter editor, use "t" to toggle the type of filter
Related to #423
2018-12-14 07:10:50 -08:00
Timothy Stack
814ad03ec9 [view] keep a history of view positions
Fixes #577
2018-12-14 06:18:56 -08:00
Timothy Stack
1a08eb0d12 [cmds] allow commands to set the prompt
Fixes #574 and #573
2018-11-21 17:00:28 -08:00
Timothy Stack
ec82ecda62 [filter] display the number of filters 2018-11-10 22:55:08 -08:00
Timothy Stack
2345a32423 [filter] add panel that shows the set of filters
Initial version, still needs some cleanup
2018-11-09 09:45:19 -08:00
Timothy Stack
b1a6d06490 [lss] refactor the force flag during indexing and some other stuff 2018-10-25 21:26:58 -07:00
Timothy Stack
a9a05af736 [logfile_sub_source] revert sorting change for now 2018-10-17 08:13:11 -07:00
Timothy Stack
14599839ed [logfile_sub_source] fix sorting 2018-10-17 08:02:05 -07:00
Timothy Stack
2589345e5c [perf] improve initial indexing times 2018-10-17 07:03:33 -07:00
Timothy Stack
9664b015c6 [textview] preserve location in view when changing filters
Defect Number:
    Reviewed By:
   Testing Done:
2018-10-08 07:43:08 -07:00
Timothy Stack
5689984702 [yajlpp] use pointer to member over nullobj() 2018-05-25 06:32:01 -07:00
Timothy Stack
4ccae48aea [bookmarks] add support for tags and comments for log lines
Initial work for #446 and #447
  TODO: filtering on tags/comments

Also did a bunch of clang-tidy cleanups and improvements to
the online help.
2018-05-17 07:06:50 -07:00
Timothy Stack
7fb881222d [pretty] highlight log messages in the pretty view as in the normal log view 2018-05-10 06:44:03 -07:00
Timothy Stack
873fc4dc2e [logfile_sub_source] handle closed file 2018-04-13 10:03:05 -07:00
Timothy Stack
9f91d3b447 [log-view] display the unique parts of the file name instead of just the base
Instead of just displaying the base name of the file, try to include some
additional parts of the path that make a unique string.
2018-04-03 07:36:09 -07:00
Phil Hord
3f7f80e32c Squash various compiler warnings
Unused-result from sensitive APIs, printf/scanf formatting types, set
but never used variables, and uninitialized variables.

Also there's one select(enum) that doesn't cover all cases.
2018-03-29 10:49:45 -07:00
Timothy Stack
87cbab1ac3 [index] do a full sort if new lines have a timestamp before the last indexed 2018-03-29 07:32:57 -07:00
Timothy Stack
36932b148d [hotkeys] cleanup the last commit 2018-03-28 05:35:37 -07:00
Phil Hord
4d4ac9b8b0 Add another filename mode to show file path
Add a separate BASENAME bit to distinguish from the FILENAME bit.
When BASENAME is active show the base filename in the filename column.
When FILENAME is active show the whole path for each filename.  Cycle
through the three modes with toggle_filename() still. Note that we are
never in both FILENAME and BASENAME mode.

The user can cycle through the three modes by pressing the hotkey an
extra time.  First press shows the basename, second press shows the full
path (filename), and the third press hides the filename column again.
2018-03-27 16:07:56 -07:00
Phil Hord
81974c6bdc Fix filename column width and attributes
Display the basename instead of the whole path for each file when
the filename column is displayed. Make the column the same width all
the time, taking the maximum basename width of all loaded files and
padding with spaces.

Also fix the attributes when the filename column is displayed.  Insert
the correct filename-matching color for as many characters as we add for
the filename column.  Use the full filename when looking up the color
because we don't want files in different paths to have the same color,
and we don't want the color to change based on whether we are displaying
the base or the whole filename.
2018-03-27 16:07:56 -07:00
Adam Spiers
9ffbc1ac46 make '.' toggle prefixing each log line with filename
Mostly addresses #277.  I won't claim it fully closes it, because there
are at least two ways it could be improved:

1. It doesn't draw a nice coloured divider in the column after the
   filename, and that would provide maximum visual clarity and
   consistency with the existing presentation.

2. It would be nice if the filenames weren't shown on every single line,
   but only on the first line of a contiguous chunk of log lines from a
   single file (or on the top line of the screen if the first line of
   the chunk was already scrolled off the top).

3. It doesn't yet include the filename in the text copied to the
   clipboard when the 'c' hotkey is pressed.
2018-03-27 16:07:56 -07:00
Timothy Stack
f25980df03 [ui] rework the default colors change
The default colors change resulted in some parts of the lnav
UI being colored incorrectly.  I've reworked it a bit so that
the ansi color pairs are preserved and the default colors are
only used with the color pairs for roles.  I've also replaced
references to ansi colors with roles in a few places to make
things work consistently.
2017-12-02 22:11:34 -08:00
Timothy Stack
d18b344489 [perf] avoid an initial forced index rebuild
Defect Number:
    Reviewed By:
   Testing Done:
2017-04-25 06:55:07 -07:00
Timothy Stack
8ea51a6fd8 [formats] support for CSV/TSV log formats
Defect Number:
    Reviewed By:
   Testing Done:
2017-04-23 07:11:21 -07:00
Timothy Stack
78119dc9f1 fixing some minor issues
Fixes #255
2017-04-05 07:05:19 -07:00
Timothy Stack
1a87184c82 [log] allow parts of log messages to be hidden
Fixes #412
2017-02-23 06:15:44 -08:00
Timothy Stack
bc91a8e281 [log-view] show search hits in the left file line with a reverse-video marker
If the search-hit is past the right side of the screen (as mentioned in #394)
we should try to make that more obvious by adding a highlight on the left.
2016-12-10 07:35:08 -08:00
Timothy Stack
26cd9f5930 [ptime] make sure the full time stamp is matched
Fixes #389
Fixes #390
2016-11-22 08:38:45 -08:00
Timothy Stack
592ee60693 [log] fix rewriting machine-oriented timestamps
Fixes #371
2016-11-21 11:34:12 -08:00
Timothy Stack
b296e84a65 [format] color extra json fields that are identifiers 2016-10-29 22:16:45 -07:00
Timothy Stack
41854cf637 [json-log] custom date formats
Fixes #341
2016-08-18 22:15:35 -07:00
Timothy Stack
efc74a5a0e [docs] some minor doc updates 2016-04-05 06:22:25 -07:00
Timothy Stack
4f05af6408 [time] add support for TAI64N timestamps
Fixes #300
2016-04-02 20:58:20 -07:00
Timothy Stack
7a6429519f [summary-line] change error count to error rate and do some cleanup on message levels 2016-03-24 23:58:25 -07:00
Timothy Stack
13c90726a2 [tests] some more testing and stats for logfiles 2016-03-23 22:14:59 -07:00
Timothy Stack
fdc2748e3e [spectro] add a spectrogram view that works with known message fields 2016-03-20 15:15:50 -07:00
Timothy Stack
f81d4aefd8 [logview] some more work on highlighting out-of-time-order messages 2016-03-05 14:20:14 -08:00
Timothy Stack
53e2d92eef [ui] highlight out-of-time-order messages in yellow with an underline 2016-03-03 06:05:26 -08:00
Timothy Stack
89be76ef42 [filters] clear the state for filters that have been deleted
Fixes #292
2016-02-24 23:42:02 -08:00
Timothy Stack
224a7196e4 [cmd] hide lines commands 2015-12-05 20:38:21 -08:00
Timothy Stack
ecd3eb05bc [coverity] next set of fixes 2015-09-19 21:13:46 -07:00
Timothy Stack
b4cb092ce1 [view] stop scrolling to the right when the end is reached
Fixes #84
2015-08-14 20:45:23 -07:00
Timothy Stack
27bb9bb2ee [fmt] highlight identifiers in module formats 2015-07-19 02:40:02 -07:00
Timothy Stack
04f8ceadab [file-marker] some more cleanup 2015-05-14 22:07:28 -07:00
Timothy Stack
b8b16bd8e5 [view] differentiate messages from different log files 2015-05-13 22:13:47 -07:00
Timothy Stack
38e56b63ea [hist] fix the histogram when filters change 2015-04-04 13:36:53 -07:00
Suresh Sundriyal
8c329130ed [-Wsign-compare] logfile_sub_source.cc 2015-04-02 01:40:21 -07:00
Timothy Stack
033c861028 [cmd] next/prev-mark commands 2015-03-29 14:50:34 -07:00
Timothy Stack
0b816dd45d [nav] fix time-based navigation when filtering is active 2015-01-25 20:51:21 -08:00
Timothy Stack
c2e44c5998 [filter] fix for multiple filter-ins being applied 2014-12-10 07:03:01 -08:00
Timothy Stack
cfa628f6c4 various fixes
Defect Number:
    Reviewed By:
   Testing Done:
2014-11-11 21:18:55 -08:00
Timothy Stack
cd953a548c [filter] update the UI during filtering again
Defect Number:
    Reviewed By:
   Testing Done:
2014-11-03 06:07:36 -08:00
Timothy Stack
cde87f0a11 [log_sub_source] fix the filtered count
Defect Number:
    Reviewed By:
   Testing Done:
2014-11-02 19:46:53 -08:00
Timothy Stack
a71ca1f1ca [filter] some improvements to the core filtering code 2014-10-19 22:16:40 -07:00
Timothy Stack
4ce9a1e871 [elapsed-time] add a visual indicator for sharp changes in message rate 2014-03-16 15:07:08 -07:00
Timothy Stack
1de4838cf5 [index] allow for larger file sizes
Fixes #76

Max line count for a file is 256 million and the
max number of files is 4096.
2014-03-09 23:38:30 -07:00
Timothy Stack
8455257aad fix coloring for the timestamp when in time-offset mode 2014-03-07 17:31:33 -08:00
Timothy Stack
d993d0e8c6 [partition] make partitions a separate bookmark type 2014-03-07 05:20:49 -08:00
Timothy Stack
b6baae7730 [debug] more debugging stuff
Defect Number:
    Reviewed By:
   Testing Done:
2014-03-06 06:58:49 -08:00
Timothy Stack
c780ddb9af [mouse] more small fixes for mouse support (dragging) 2014-03-03 21:02:59 -08:00
Timothy Stack
10eb9617b1 [sql] add a bookmark column to the log tables 2014-03-01 23:40:12 -08:00
Timothy Stack
2dd2b02e1b [headless] add options for usage without the UI 2014-02-28 20:35:07 -08:00
Timothy Stack
5ef8a168a7 [perf] reduce copies of log messages 2014-02-01 06:41:11 -08:00
Timothy Stack
f4aeb11ad5 [view_curses] use a vector for string attributes
Using a map/multimap is too expensive/complex for how many
attributes we have on a line due to how many tree nodes
need to be malloced/freed.  Just using a vector should be
good enough and a lot faster.
2014-01-25 09:29:35 -08:00
Timothy Stack
9906e949cf [overlay] clear overlay when file is removed 2014-01-16 06:37:02 -08:00
Timothy Stack
73bde9dee3 [filter] fix problems with filtering multi-line log messages 2014-01-15 07:05:15 -08:00
Timothy Stack
7feeaf0fde highlighting nits and fix filtering
Defect Number:
    Reviewed By:
   Testing Done:
2014-01-13 21:58:04 -08:00
Timothy Stack
7df2470624 [wrap] compute line size for logs and cache the value 2013-11-09 17:14:40 -08:00
Timothy Stack
c3d51190c8 [wrap] start support for word wrapping and fix a variety of glitches 2013-11-06 07:29:20 -08:00
Timothy Stack
c59acba758 [format] initial support for json formats and some bug fixes 2013-09-10 06:20:37 -07:00
Timothy Stack
3e480b5bad [bookmark] add support for metadata attached to bookmarks 2013-07-05 09:14:39 -07:00
Timothy Stack
79c4038128 [log time] add a command to adjust log message times 2013-06-30 16:43:08 -07:00
Timothy Stack
2cd356b4c5 [log format] some more work to externalize log formats; color identifiers in logs 2013-06-29 06:22:24 -07:00
Timothy Stack
6d77a7412e [pcrepp] add support for named captures and fix some other bugs 2013-06-24 18:08:43 -07:00
Timothy Stack
8908e2569f [parser] fix some parser issues; and a fix for my last checkin 2013-06-23 06:11:37 -07:00
Timothy Stack
db963c16cb [perf] use k-way merge instead of stable_sort when building the index of all lines 2013-06-22 17:40:21 -07:00
Timothy Stack
6535b03b6e [log] try to cache the results of filtering so we do not always recompute 2013-06-22 13:44:50 -07:00
Timothy Stack
5a7d6dab2c [cleanup] uncrustify 2013-06-15 18:07:50 -07:00
Timothy Stack
865849f017 [spam] uncrustify pass 2013-05-27 21:35:00 -07:00