What is location of logs? can we provide custom location ? if yes how?
I tried 2 things but nothing worked for me
<<1>>
azure::storage::operation_context* m_context = new azure::storage::operation_context();
m_context->set_log_level(azure::storage::client_log_level::log_level_verbose);
I have 3 questions around logging:
<<2>> void init() { boost::log::add_file_log ( boost::log::keywords::file_name = "boost.log", /< file name pattern >/ boost::log::keywords::rotation_size = 10 1024 1024, /< rotate files every 10 MiB... >/ boost::log::keywords::time_based_rotation = boost::log::sinks::file::rotation_at_time_point(0, 0, 0), /< ...or at midnight >/ boost::log::keywords::format = "[%TimeStamp%]: %Message%", /< log record format >/ boost::log::keywords::target = "/tmp", boost::log::keywords::auto_flush = true, boost::log::keywords::open_mode = std::ios_base::app | std::ios_base::out );
}
int main() { inti(); boost::log::add_common_attributes(); boost::log::sources::severity_logger lg;
m_context->set_logger(lg);
// perform operations like list blob, download page ranges etc. }
thanks, Niteen