7 Aralık 2016 Çarşamba

log sinks text_multifile_backend Sınıfı

Constructor
Şöyle yaparız.
boost::shared_ptr<sinks::text_multifile_backend> backend =
  boost::make_shared< sinks::text_multifile_backend >();
set_file_name_composer metodu
Şöyle yaparız.
backend->set_file_name_composer
(
  sinks::file::as_file_name_composer(
    boost::log::expressions::stream <<
      boost::log::expressions::attr< std::string >("level") << ".log")
);

Hiç yorum yok:

Yorum Gönder