diff --git a/log.cpp b/log.cpp index 2e8ba8e..d250081 100644 --- a/log.cpp +++ b/log.cpp @@ -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; diff --git a/log.h b/log.h index c94e3c4..50b6ce5 100644 --- a/log.h +++ b/log.h @@ -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, ...);