Allow setting custom log file via -f FILENAME

`profanity -f TEST` will use `~/.local/share/profanity/logs/TEST.log` as
the log file.
This commit is contained in:
Michael Vetter
2020-02-21 21:10:00 +01:00
parent 99dc1c9494
commit 75cfe38808
7 changed files with 55 additions and 25 deletions

View File

@@ -53,7 +53,7 @@ typedef enum {
PROF_OUT_LOG
} chat_log_direction_t;
void log_init(log_level_t filter);
void log_init(log_level_t filter, char *log_file);
log_level_t log_get_filter(void);
void log_close(void);
void log_reinit(void);