mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Add --log-append option
Add --log-append option which makes tio append to any existing log file. This also changes the default behaviour of tio from appending to overwriting any existing log file. Now you have to use this new option to make tio append.
This commit is contained in:
parent
3bedd85e7c
commit
148a3c1da1
7 changed files with 28 additions and 2 deletions
|
|
@ -198,6 +198,10 @@ static int data_handler(void *user, const char *section, const char *name,
|
|||
asprintf(&c.log_filename, "%s", value);
|
||||
option.log_filename = c.log_filename;
|
||||
}
|
||||
else if (!strcmp(name, "log-append"))
|
||||
{
|
||||
option.log_append = read_boolean(value, name);
|
||||
}
|
||||
else if (!strcmp(name, "log-strip"))
|
||||
{
|
||||
option.log_strip = read_boolean(value, name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue