#include <iostream>#include <fstream>Go to the source code of this file.
Namespaces | |
| namespace | libtorrent |
| namespace | libtorrent::dht |
Classes | |
| class | libtorrent::dht::log |
| class | libtorrent::dht::log_event |
| class | libtorrent::dht::inverted_log_event |
Defines | |
| #define | TORRENT_DECLARE_LOG(name) libtorrent::dht::log& name ## _log() |
| #define | TORRENT_DEFINE_LOG(name) |
| #define | TORRENT_LOG(name) |
| #define TORRENT_DECLARE_LOG | ( | name | ) | libtorrent::dht::log& name ## _log() |
Definition at line 130 of file logging.hpp.
| #define TORRENT_DEFINE_LOG | ( | name | ) |
Value:
libtorrent::dht::log& name ## _log() \ { \ static std::ofstream log_file("dht.log", std::ios::app); \ static libtorrent::dht::log instance(#name, log_file); \ return instance; \ }
Definition at line 133 of file logging.hpp.
| #define TORRENT_LOG | ( | name | ) |
Value:
if (libtorrent::dht::inverted_log_event event_object__ = name ## _log()); \ else static_cast<log_event&>(event_object__)
Definition at line 141 of file logging.hpp.
Referenced by libtorrent::dht::traversal_algorithm::add_entry(), libtorrent::dht::traversal_algorithm::add_requests(), libtorrent::dht::traversal_algorithm::failed(), libtorrent::dht::rpc_manager::incoming(), libtorrent::dht::node_impl::incoming_request(), libtorrent::dht::node_impl::on_find(), libtorrent::dht::dht_tracker::on_receive(), libtorrent::dht::purge_peers(), libtorrent::dht::node_impl::refresh_timeout(), libtorrent::dht::dht_tracker::send_packet(), and libtorrent::dht::rpc_manager::~rpc_manager().
1.5.6