Add option to set log level from config file.

Bu işleme şunda yer alıyor:
Michał Słomkowski 2016-04-18 01:30:10 +02:00
ebeveyn bd3f62c044
işleme 11e93bb138
2 değiştirilmiş dosya ile 6 ekleme ve 0 silme

Dosyayı Görüntüle

@ -1,3 +1,7 @@
[general]
# valid values for log level are: ERROR, WARN, NOTICE, INFO, DEBUG
logLevel = NOTICE
[sip]
# list of valid SIP URIs for incoming connections separated by space
# supported wildcards: *

Dosyayı Görüntüle

@ -42,6 +42,8 @@ int main(int argc, char *argv[]) {
config::Configuration conf(argv[1]);
logger.setPriority(log4cpp::Priority::getPriorityValue(conf.getString("general.logLevel")));
sip::IncomingConnectionValidator connectionValidator(conf.getString("sip.validUriExpression"));
boost::asio::io_service ioService;