X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=config.h;h=47dabe9d90a18cbb2b845cdbea65b9121ddc271f;hb=433df75e414444dc9c9f32dbef264531105e47b7;hp=34edaa7c878a2f340733b78aab1e8fd01b7fa9e5;hpb=488f28bf7070f44469a006ed4a9d4c423788d175;p=cubemap diff --git a/config.h b/config.h index 34edaa7..47dabe9 100644 --- a/config.h +++ b/config.h @@ -22,14 +22,23 @@ struct AcceptorConfig { int port; }; +struct LogConfig { + enum { LOG_TYPE_FILE, LOG_TYPE_CONSOLE, LOG_TYPE_SYSLOG } type; + std::string filename; +}; + struct Config { + bool daemonize; int num_servers; std::vector mark_pools; std::vector streams; std::vector acceptors; + std::vector log_destinations; std::string stats_file; // Empty means no stats file. int stats_interval; + + std::string access_log_file; // Empty means no accses_log file. }; // Parse and validate configuration. Returns false on error.