swapped file/screen for setll
This commit is contained in:
parent
fe124c5589
commit
59fdfac322
2 changed files with 2 additions and 2 deletions
2
log.cpp
2
log.cpp
|
@ -66,7 +66,7 @@ void setloghost(const char *const host, const log_level_t ll)
|
||||||
l_timestamp = false;
|
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_file = ll_file;
|
||||||
log_level_screen = ll_screen;
|
log_level_screen = ll_screen;
|
||||||
|
|
2
log.h
2
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);
|
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 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 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 setloguid(const int uid, const int gid);
|
||||||
void closelog();
|
void closelog();
|
||||||
void dolog(const log_level_t ll, const char *fmt, ...);
|
void dolog(const log_level_t ll, const char *fmt, ...);
|
||||||
|
|
Loading…
Add table
Reference in a new issue