util/logging.cc
/// Setup for logs to be collected into a directory.
///
Setup for logs to be collected into a directory.
Setup for logs to be collected into a directory .
static void
init_file_collecting(boost::shared_ptr< sink_t > sink)
{
    auto realpath = expand_home("~/logs_old");
    sink->locked_backend()->set_file_collector(sinks::file::make_collector(
        keywords::target = realpath.c_str(),
        keywords::max_size = 16 * 1024 * 1024, 
        keywords::min_free_space = 100 * 1024 * 1024, 
        keywords::max_files = 7
    ));
}
static void init_file_collecting ( boost :: shared_ptr < sink_t > sink ) { auto realpath = expand_home ( " " ) ; sink -> locked_backend ( ) -> set_file_collector ( sinks :: file :: make_collector ( keywords :: target = realpath . c_str ( ) , keywords :: max_size = 16 * 1024 * 1024 , keywords :: min_free_space = 100 * 1024 * 1024 , keywords :: max_files = 7 ) ) ; }
Setup for logs to be collected into a directory.
Setup for logs to be collected into a directory .
// 16 MB limit // leave this many MB free