diff options
author | David Oberhollenzer <david.oberhollenzer@tele2.at> | 2018-08-16 00:10:03 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@tele2.at> | 2018-08-16 13:59:02 +0200 |
commit | d62ee95689e1e8c6fa4b395adfc8c0fcbca96b6f (patch) | |
tree | 95021f27e137640df91daffb826e10480cf59bb6 /syslogd/backend.h | |
parent | 4311b9a2f14ee411ec3dc8b050f8efa25afa0bc5 (diff) |
Implement simple log rotation
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
Diffstat (limited to 'syslogd/backend.h')
-rw-r--r-- | syslogd/backend.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/syslogd/backend.h b/syslogd/backend.h index 9f26a54..b5e238a 100644 --- a/syslogd/backend.h +++ b/syslogd/backend.h @@ -26,6 +26,8 @@ typedef struct log_backend_t { void (*cleanup)(struct log_backend_t *log); int (*write)(struct log_backend_t *log, const syslog_msg_t *msg); + + void (*rotate)(struct log_backend_t *log); } log_backend_t; |