swapped file/screen for setll

This commit is contained in:
folkert van heusden 2024-04-25 01:14:58 +02:00
parent fe124c5589
commit 59fdfac322
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1
2 changed files with 2 additions and 2 deletions

View file

@ -66,7 +66,7 @@ void setloghost(const char *const host, const log_level_t ll)
l_timestamp = false;
}
void setll(const log_level_t ll_file, const log_level_t ll_screen)
void setll(const log_level_t ll_screen, const log_level_t ll_file)
{
log_level_file = ll_file;
log_level_screen = ll_screen;

2
log.h
View file

@ -13,7 +13,7 @@ typedef enum { ll_emerg = 0, ll_alert, ll_critical, ll_error, warning, notice, i
log_level_t parse_ll(const std::string & str);
void setlogfile(const char *const lf, const log_level_t ll_file, const log_level_t ll_screen, const bool l_timestamp);
void setloghost(const char *const host, const log_level_t ll);
void setll(const log_level_t ll_file, const log_level_t ll_screen);
void setll(const log_level_t ll_screen, const log_level_t ll_file);
void setloguid(const int uid, const int gid);
void closelog();
void dolog(const log_level_t ll, const char *fmt, ...);