mirror of
https://github.com/irssi/irssi.git
synced 2026-08-16 15:12:11 +02:00
/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
This commit is contained in:
parent
82d272799c
commit
ccf12d2bfc
4 changed files with 57 additions and 110 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue