Timothy Stack
815a05577e
[keymap] suggest the config option to set for an unknown keystroke
...
Also, add a unicode green-check/red-X mark for the success/error
message for commands.
4 years ago
Timothy Stack
8413dd13d8
[config] add configs directory
4 years ago
Timothy Stack
8a0193691f
ignore stdin when it is from /dev/null
5 years ago
Timothy Stack
138a506b1a
[perf] a few performance tweaks
5 years ago
Timothy Stack
63dba408ec
[stdin] Keep the stdin piper file in .lnav so that it can be reopened
...
When piping the output of a program into lnav, the data would
be dumped to the terminal on exit so that it would not be
lost. Since that is a bit noisy, the temp file used to store
the data is now left in .lnav so that it can be reopened later.
Older stdin captures are automatically removed after a day.
Also took the opportunity to start using filesystem::path more.
Fixes #436
5 years ago
Timothy Stack
fb7d6eafaf
[build] some refactoring of files
5 years ago
Phil Hord
eee7d0ddfc
Squash a bunch of signed/unsigned warnings
7 years ago
Timothy Stack
7d7060ae4c
[generic_log] fix recognition for generic logs
...
The generic format picks up extra text in the timestamp, which
caused the date time scanner to reject some matches. I think
it's okay to allow for some trailing junk, so it no longer
ensures the size of the match is the same as the input.
7 years ago
Timothy Stack
a6d4563d7d
[build] missing header
7 years ago
Timothy Stack
4b40b3f9f5
[date-time] add a formatter for 0x0p+0
...
Defect Number:
Reviewed By:
Testing Done:
7 years ago
Suresh Sundriyal
0c88eeeb07
Fix lnav builds on OpenBSD.
...
* Remove all the wordexp related unused headers and code.
* stdout does not appear to be reassignable on OpenBSD.
* defining _WCHAR_H_CPLUSPLUS_98_CONFORMANCE_ seems to fix the const
correctness related redefinitions between wchar.h imported from
the system libc and the one imported by clang++ STL.
7 years ago
Timothy Stack
7240aaa127
[time] an epoch timestamp should not have whitespace
8 years ago
Timothy Stack
8ea51a6fd8
[formats] support for CSV/TSV log formats
...
Defect Number:
Reviewed By:
Testing Done:
8 years ago
Adam Spiers
43ac6366cb
fix -Wformat time_t warnings ( #368 )
...
Fix warnings like:
ptimec.hh: In function ‘void ftime_i(char*, off_t&, ssize_t, const exttm&)’:
ptimec.hh:387:57: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
snprintf(&dst[off_inout], len - off_inout, "%lld", t);
^
In this case we know that the `t` returned by `tm2sec` is a number of
seconds, so a long should be long enough, and anyway there is already
code checking for overflow.
Fixes #368 .
https://github.com/tstack/lnav/issues/368
8 years ago
Timothy Stack
26cd9f5930
[ptime] make sure the full time stamp is matched
...
Fixes #389
Fixes #390
8 years ago
Timothy Stack
4c0a8d0376
[ptime] need to clear the zone from the base when using a custom time format
8 years ago
Timothy Stack
41a2eed239
[pretty-print] fix printing of quoted strings that have escaped characters
...
Fixes #354
8 years ago
Timothy Stack
876b37ade0
[log-format] add "truncate" overflow value
8 years ago
Timothy Stack
c05dfafae8
[log-format] abbreviate long fields when formatting JSON logs
...
Fixes #340
8 years ago
Timothy Stack
41854cf637
[json-log] custom date formats
...
Fixes #341
8 years ago
Timothy Stack
96191badf3
[release] update versions for release and fix some time issues
9 years ago
Timothy Stack
4f05af6408
[time] add support for TAI64N timestamps
...
Fixes #300
9 years ago
Timothy Stack
7a6429519f
[summary-line] change error count to error rate and do some cleanup on message levels
9 years ago
Timothy Stack
7c74ecf1e7
[logview] add a "time span" section to the summary and right justify the summary
9 years ago
Timothy Stack
ff35d811e2
[logview] more summary line tweaks
9 years ago
Timothy Stack
80e5e8fcce
[logview] add a line with summary information to the log view
9 years ago
Timothy Stack
9213a6b58b
[out-of-order] some more tweaks for out-of-order
9 years ago
Timothy Stack
a2b381ca19
[config] initial impl with clock-format as the only option at the moment
9 years ago
Timothy Stack
87b07a0087
[sql] allow log_part to be updated
9 years ago
Timothy Stack
e07b4e448f
[exec] add a prompt to execute lnav scripts
9 years ago
Timothy Stack
c4ae8d158c
[fmt] minor fix for the generic_log format and add another pattern to vmw_log
9 years ago
Timothy Stack
64cbab1281
[sql] exec .sql files in format dirs
9 years ago
Timothy Stack
ec473edc85
[cmd] add support for times in goto
9 years ago
Timothy Stack
399c78d86d
[pretty] pretty-print the contents of strings
...
Fixes #250
9 years ago
Timothy Stack
bedae8c8c2
[fmt] install/update formats from git repos
...
Fixes #244
9 years ago
Timothy Stack
83b92c3b65
[papertrail] add support for time ranges
9 years ago
Timothy Stack
f286950854
[curl] add a curl looper to handle url requests
9 years ago
Timothy Stack
cec3d0cb72
[generic_log] add time format that includes zone
10 years ago
Timothy Stack
245a3c3d1b
[fmt] allow timestamp to be specified in the log format
...
Fixes #155
10 years ago
Timothy Stack
0452bc0438
[build] some more sign-compare stuff
10 years ago
Suresh Sundriyal
0c30d52ca2
[Coverity] Remove dead code.
...
Given the fact that rem += SECSPERDAY is executed only when rem < 0,
it won't be possible for the condition 'rem >= SECSPERDAY' to be true.
10 years ago
Timothy Stack
1d3481c3fa
[cmd] add pipe-to and pipe-line-to commands
10 years ago
Timothy Stack
cd953a548c
[filter] update the UI during filtering again
...
Defect Number:
Reviewed By:
Testing Done:
10 years ago
Timothy Stack
2d23f8e809
[time] use the gmtime from newlib
...
Defect Number:
Reviewed By:
Testing Done:
10 years ago
Timothy Stack
0859f69c9f
try to fix a crash related to deleted files
10 years ago
Timothy Stack
d4bea593b7
[perf] optimize json log loading
10 years ago
Timothy Stack
a71ca1f1ca
[filter] some improvements to the core filtering code
10 years ago
Timothy Stack
d557002724
[format] add OpenAM log formats
10 years ago
Timothy Stack
8372cef11c
[date] code generator for strptime formats
11 years ago
Timothy Stack
9ff2d3774d
[line_buffer] split long lines
...
Fixes #81
11 years ago