• Guillaume Beraudo's avatar
    Optionnal dependency on Boost::Log v1 (trunk) · ac94a0b0
    Guillaume Beraudo authored
    - presence of boost log library is autoetected;
    - on g++ 4.4, boost library needs simple patch below [1];
    - on g++ 4.4, need some rvalue and operator<< hacks (see #if);
    - new log-filter config in global which can be set by snmp [2]
    
    [1]
    Change at make_shared.hpp:168
        ::new( pv ) T( boost::detail::sp_forward<Arg1>( arg1 ), boost::detail::sp_forward<Args>( args )... );
    to
        ::new( pv ) T( std::forward<Arg1>( arg1 ), std::forward<Args>( args )... );
    
    [2]
    do a flexisip --dump-snmp-mib then
    snmpset -m FLEXISIP-MIB -Of  -v 2c -c private localhost flexisipMIB.flexisip.global.logFilter.0 s "%Severity% >= debug"
    snmpset -m FLEXISIP-MIB -Of  -v 2c -c private localhost flexisipMIB.flexisip.global.logFilter.0 s "%Severity% >= info"
    ac94a0b0
event.cc 7.58 KB