mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Add key command to toggle log on/off
Add key command 'ctrl-t f' which will toggle log on/off. If no log filename has been specified via the 'log-filename' option then tio will automatically generate a new log filename every time the log feature is toggled on. Meaning, when toggled multiple times, multiple log files will be generated. However, if a log filename has been specified, tio will only write and append to that same file.
This commit is contained in:
parent
a4f0d4da53
commit
419fbdc3fa
6 changed files with 58 additions and 26 deletions
|
|
@ -38,6 +38,7 @@
|
|||
#include "rs485.h"
|
||||
#include "timestamp.h"
|
||||
#include "alert.h"
|
||||
#include "log.h"
|
||||
|
||||
enum opt_t
|
||||
{
|
||||
|
|
@ -216,7 +217,7 @@ void options_print()
|
|||
if (option.map[0] != 0)
|
||||
tio_printf(" Map flags: %s", option.map);
|
||||
if (option.log)
|
||||
tio_printf(" Log file: %s", option.log_filename);
|
||||
tio_printf(" Log file: %s", log_get_filename());
|
||||
if (option.socket)
|
||||
tio_printf(" Socket: %s", option.socket);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue