diff options
author | Curtis McEnroe | 2018-08-17 21:50:45 -0400 |
---|---|---|
committer | Curtis McEnroe | 2018-08-17 21:50:45 -0400 |
commit | 9469db993c276cba60041c3fd120aabd541530db (patch) | |
tree | 94c214117327e85774761339271ccc1ed33228b2 /chat.h | |
parent | 38fc42f03d89693fc7e3951fd7257d394f417a6f (diff) |
Add logging
The reason logFmt takes a timestamp as a parameter is to support IRCv3 server-time in the future to accurately log the znc buffer. Hopefully.
Diffstat (limited to 'chat.h')
-rw-r--r-- | chat.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chat.h b/chat.h index c66683b..51494de 100644 --- a/chat.h +++ b/chat.h @@ -154,6 +154,11 @@ void urlScan(struct Tag tag, const char *str); void urlList(struct Tag tag); void urlOpen(struct Tag tag, size_t at, size_t to); +void logOpen(const char *path); +void logFmt( + struct Tag tag, const time_t *ts, const char *format, ... +) __attribute__((format(printf, 3, 4))); + void spawn(char *const argv[]); wchar_t *ambstowcs(const char *src); |