diff options
author | Timo Sirainen <cras@irssi.org> | 2000-08-11 22:07:42 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-08-11 22:07:42 +0000 |
commit | ccf12d2bfc9e0ab401ede4300f13a5c17e07e0bf (patch) | |
tree | 47d7d19327f6105d56558a632ede08f5a225deb8 /src/core/log.h | |
parent | 82d272799c0c542bddb725c2ea73e85045bb22d7 (diff) | |
download | irssi-ccf12d2bfc9e0ab401ede4300f13a5c17e07e0bf.zip |
/LOG: Removed the -rotate option, it was pretty useless since adding
the % formats to file name already tells that the log should be
rotated.
Autologging supports log rotating now too, just add the wanted %
formats to /SET autolog_path
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@586 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core/log.h')
-rw-r--r-- | src/core/log.h | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/core/log.h b/src/core/log.h index 184f5ace..5be51852 100644 --- a/src/core/log.h +++ b/src/core/log.h @@ -1,16 +1,9 @@ #ifndef __LOG_H #define __LOG_H -enum { - LOG_ROTATE_NEVER, - LOG_ROTATE_HOURLY, - LOG_ROTATE_DAILY, - LOG_ROTATE_WEEKLY, - LOG_ROTATE_MONTHLY -}; - typedef struct { - char *fname; /* file name */ + char *fname; /* file name, in strftime() format */ + char *real_fname; /* the current expanded file name */ int handle; /* file handle */ time_t opened; @@ -18,7 +11,6 @@ typedef struct { char **items; /* log only on these items (channels, queries, window refnums) */ time_t last; /* when last message was written */ - int rotate; int autoopen:1; /* automatically start logging at startup */ int temp:1; /* don't save this to config file */ @@ -37,9 +29,6 @@ LOG_REC *log_find(const char *fname); void log_write(const char *item, int level, const char *str); void log_write_rec(LOG_REC *log, const char *str); -const char *log_rotate2str(int rotate); -int log_str2rotate(const char *str); - int log_start_logging(LOG_REC *log); void log_stop_logging(LOG_REC *log); |