1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-14 17:47:33 -05:00

Add option whether to include header when logging.

It is useful to be able to exclude the header so that the log file
can be used for realtime input to other programs such as Kst for
plotting live data from sensors.
This commit is contained in:
Jonathan Liu
2018-09-26 20:48:11 +10:00
committed by Simon Tatham
parent 686e78e66b
commit 822d2fd4c3
6 changed files with 17 additions and 1 deletions

View File

@ -103,7 +103,7 @@ static void logfopen_callback(void *vctx, int mode)
}
}
if (ctx->state == L_OPEN) {
if (ctx->state == L_OPEN && conf_get_int(ctx->conf, CONF_logheader)) {
/* Write header line into log file. */
tm = ltime();
strftime(buf, 24, "%Y.%m.%d %H:%M:%S", &tm);