Commit Graph

119 Commits

Author SHA1 Message Date
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
eee7d0ddfc Squash a bunch of signed/unsigned warnings 2018-03-29 10:49:38 -07:00
Timothy Stack
36932b148d [hotkeys] cleanup the last commit 2018-03-28 05:35:37 -07:00
Timothy Stack
8257f188cb [hotkeys] change the filename hotkey to left/right arrow 2018-03-27 22:11:57 -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
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
04e60fd79d [build] sign warnings 2017-04-06 07:40:07 -07:00
Timothy Stack
4954817741 [crash] pressing i/I when not in the log view
Defect Number:
    Reviewed By:
   Testing Done:
2017-04-02 07:47:51 -07:00
Timothy Stack
411ea1fbee [help] show help text for SQL functions
Defect Number:
    Reviewed By:
   Testing Done:
2017-03-31 07:01:11 -07: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
4f05af6408 [time] add support for TAI64N timestamps
Fixes #300
2016-04-02 20:58:20 -07:00
Timothy Stack
9c364bf48e [spectro] add spectro view support for sql results 2016-03-30 20:18:28 -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
80e5e8fcce [logview] add a line with summary information to the log view 2016-03-13 22:22:27 -07: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
91406be91e [nav] add "opid" support with a hotkey 2015-11-24 20:59:24 -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
38e56b63ea [hist] fix the histogram when filters change 2015-04-04 13:36:53 -07:00
Timothy Stack
44d2e12403 [text] add filtering support to the plain text view
Fixes #149 #148
2015-03-28 06:30:30 -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
0d6f067aab [coverity] a couple of fixes 2014-11-03 20:24:46 -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
d4bea593b7 [perf] optimize json log loading 2014-10-28 07:02:27 -07:00
Timothy Stack
a71ca1f1ca [filter] some improvements to the core filtering code 2014-10-19 22:16:40 -07:00
Timothy Stack
ccf29b3bac [coverity] some cleanup and add the chunky_index 2014-09-28 22:36:07 -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
d17f7b1940 [cmd] add set-min-log-level command
Part of #82
2014-03-16 02:46:17 -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
dbc96dc67c [session] preserve time-offset log-view setting 2014-03-07 21:53:24 -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
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
c3e1dda8f7 [sql] fix bug when querying sub-lines 2014-02-19 20:23:19 -08:00
Timothy Stack
5ef8a168a7 [perf] reduce copies of log messages 2014-02-01 06:41:11 -08:00
Timothy Stack
ef6380d03e [wrap] fix some word-wrap glitches 2013-11-10 07:32:35 -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
59c1d4313b [mouse] more mouse support and other fixes 2013-10-11 06:22:29 -07:00
Timothy Stack
c59acba758 [format] initial support for json formats and some bug fixes 2013-09-10 06:20:37 -07:00
Timothy Stack
729c842ca5 [session] saving bookmarks 2013-07-13 21:31:59 -07:00
Timothy Stack
3e480b5bad [bookmark] add support for metadata attached to bookmarks 2013-07-05 09:14:39 -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
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
5e18f47cd2 [nits] fix some recently introduced bugs and some long standing ones 2013-06-04 06:53:25 -07:00
Timothy Stack
6178231012 [session] load bookmarks 2013-06-02 21:11:17 -07:00
Timothy Stack
e5d9779cde [session] save bookmarks 2013-06-02 14:20:15 -07:00
Timothy Stack
865849f017 [spam] uncrustify pass 2013-05-27 21:35:00 -07:00
Timothy Stack
f62b5c271c [release] bump to 0.5.1 2013-05-02 23:02:03 -07:00
Timothy Stack
a476e27701 Some more miscellaneous fixes:
* lnav.cc: Move the view when J/K are pressed.
   Handle 'too many files' situations better.
 * line_buffer.cc: Increase some of the file
   size constants.
2012-11-28 08:39:39 -08:00
Timothy Stack
c26e58c9ee Merge branch 'master' of github:tstack/lnav
Conflicts:
	src/logfile_sub_source.hh
2012-11-07 17:50:56 -08:00
Timothy Stack
61f15891ec [display] Some log line display enhancements
This change adds back support for line scrubbing and
adds a column that displays the time offset from
different points in the file.  Also, try to handle
deleted files by dropping their lines from the display
view.

 * help.txt: Update the help text for the new features.
 * lnav.cc: Add scrub/time-offset key bindings.  Also
   added some more comments and added some handling for
   deleted files.
 * log_format_impls.cc: Add scrubbing for the generic
   log format that shortens timestamps and RDNS strings.
 * logfile_sub_source.cc: Add a time-offset column to
   the display.
 * textview_curses.cc: Some cleanup.
2012-10-29 16:38:58 -07:00
Timothy Stack
ca5712d33b reduce the MAX_LINES_PER_FILE so we can load more files
## BEGIN PATCH TEMPLATE

      QA Notes:
    Bug Number:
   Reviewed By:
  Testing Done: make check
2012-10-15 16:13:28 -07:00
Timothy Stack
c4e9f58bf0 [bugs] fix some long-standing bugs
* grep_proc.cc: When a request is queued with the start line
   == -1, we need to start searching from the highest line
   ever seen and not the last line processed.
 * line_buffer.cc: If a partial line was read, we need to
   avoid returning another line if more data is appended
   to the file.
 * lnav.cc: Accept file name patterns on the command-line that
   don't match any files yet.  Initialize the screen before
   redirecting stderr to the log file or /dev/null.
 * log_format.hh: Add some comments.  Start to add back support
   for scrubbing.
 * logfile_sub_source.cc: Move scrubbing to the format impl.
 * textview_curses.hh: Add comments.
2012-09-22 16:15:15 -07:00
Timothy Stack
8c06e7bed0 [mouse] first pass at mouse support 2012-04-24 14:31:35 -07:00
Tim Stack
7d0e6583df Add 'C' hotkey for clearing the user-selected bookmarks 2012-04-03 18:51:15 -07:00
Timothy Stack
a92f53ffcb some example stuff 2011-06-11 10:26:52 -07:00
Timothy Stack
1d40a8edcf build work 2009-10-14 12:42:58 -07:00
tstack
b4ec432515 first commit 2009-09-13 18:07:32 -07:00