[time-fmt] add a time format

pull/884/head
Timothy Stack 3 years ago
parent 5f1dbac193
commit 65a7bd7bd6

@ -42,6 +42,7 @@ TIME_FORMATS = \
"%m/%e/%Y %l:%M:%S %p" \
"%d/%b/%y %H:%M:%S" \
"%m%d %H:%M:%S" \
"%Y%m%d.%H%M%S" \
"%H:%M:%S" \
"%M:%S" \
"%m/%d %H:%M:%S" \

@ -0,0 +1,2 @@
20120702.102240,672:DEBUG:foo bar baz
20141008.165638,344:WARN:foo bar baz

@ -444,6 +444,13 @@ Jul 02 10:22:40 2012 -- 672
Oct 08 16:56:38 2014 -- 344
EOF
run_test ./drive_logfile -t -f generic_log ${srcdir}/logfile_generic.3
check_output "generic_log timestamp interpreted incorrectly?" <<EOF
Jul 02 10:22:40 2012 -- 672
Oct 08 16:56:38 2014 -- 344
EOF
run_test ./drive_logfile -v -f generic_log ${srcdir}/logfile_generic.0
check_output "generic_log level interpreted incorrectly?" <<EOF

Loading…
Cancel
Save