|
|
|
@ -2,10 +2,12 @@
@@ -2,10 +2,12 @@
|
|
|
|
|
|
|
|
|
|
"""Dump binary log generated by sdlog2 or APM as CSV |
|
|
|
|
|
|
|
|
|
Usage: python sdlog2_dump.py <log.bin> [-v] [-d delimiter] [-n null] [-m MSG[.field1,field2,...]] |
|
|
|
|
Usage: python sdlog2_dump.py <log.bin> [-v] [-e] [-d delimiter] [-n null] [-m MSG[.field1,field2,...]] |
|
|
|
|
|
|
|
|
|
-v Use plain debug output instead of CSV. |
|
|
|
|
|
|
|
|
|
-e Recover from errors. |
|
|
|
|
|
|
|
|
|
-d Use "delimiter" in CSV. Default is ",". |
|
|
|
|
|
|
|
|
|
-n Use "null" as placeholder for empty values in CSV. Default is empty. |
|
|
|
@ -15,7 +17,7 @@ Usage: python sdlog2_dump.py <log.bin> [-v] [-d delimiter] [-n null] [-m MSG[.fi
@@ -15,7 +17,7 @@ Usage: python sdlog2_dump.py <log.bin> [-v] [-d delimiter] [-n null] [-m MSG[.fi
|
|
|
|
|
Multiple -m options allowed.""" |
|
|
|
|
|
|
|
|
|
__author__ = "Anton Babushkin" |
|
|
|
|
__version__ = "1.1" |
|
|
|
|
__version__ = "1.2" |
|
|
|
|
|
|
|
|
|
import struct, sys |
|
|
|
|
|
|
|
|
|