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

@@ -40,7 +40,7 @@
#include <pthread.h>
#include <glib.h>
void prof_run(char *log_level, char *account_name, char * config_file);
void prof_run(char *log_level, char *account_name, char *config_file, char *log_file);
void prof_set_quit(void);
pthread_mutex_t lock;