*** empty log message ***

This commit is contained in:
Arvid Norberg
2004-11-30 11:17:32 +00:00
parent 705e40fda6
commit bc774ff491
9 changed files with 39 additions and 29 deletions

View File

@@ -778,12 +778,11 @@ namespace libtorrent { namespace detail
}
#ifndef NDEBUG
boost::shared_ptr<logger> session_impl::create_log(std::string name)
boost::shared_ptr<logger> session_impl::create_log(std::string const& name)
{
name = "libtorrent_log_" + name + ".log";
// current options are file_logger and cout_logger
// current options are file_logger, cout_logger and null_logger
#if defined(TORRENT_VERBOSE_LOGGING)
return boost::shared_ptr<logger>(new file_logger(name.c_str()));
return boost::shared_ptr<logger>(new file_logger(name + ".log"));
#else
return boost::shared_ptr<logger>(new null_logger());
#endif