Files
spark/tools/logging/import.sh
T
Pedro Pinto 07a3f99f78 Added a log pretty-printer and precise time stamps to log msgs.
We now get a total order for log messages that makes sense and also
the possiblity of measuring the time between any log messages
precisely. This can be used to provide latency logs for the spreader
or any other critical part of the system.
2017-12-29 15:58:53 -05:00

12 lines
181 B
Bash

#!/bin/bash
sed 's/[ \t]*|/|/g' .bts/data/logging/log >clean
rm log_db
sqlite3 log_db <<EOF
create table log(ts,ss,level,tid,tname,pid,loc,msg);
.separator |
.import $1 log
EOF