<p></p>
<p>Follow up question: what would it take to add a different output format to strace? I looked into the code, and a lot of code boils down to <code>tprintf</code>-ing to the currently active <code>tcb</code>. Would it be worth it to support different output formats? For example, JSON, XML and these kind of thing? Maybe in a row oriented fashion, such that on each logline an event is emitted?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/strace/strace/issues/166#issuecomment-741056262">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AOVBTR7PW43DUBOJTOLKF6TST2KSZANCNFSM4UR6QFUQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AOVBTR3K3QIOFBTGQK6PBP3ST2KSZA5CNFSM4UR6QFU2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFQVZ6BQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/strace/strace/issues/166#issuecomment-741056262",
"url": "https://github.com/strace/strace/issues/166#issuecomment-741056262",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>