#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <sys/time.h>
#include <string>
#include <vector>
#include "Logger.h"
Go to the source code of this file.
Namespaces | |
namespace | oasys |
Classes | |
struct | oasys::level2str_t |
class | oasys::Log |
Dynamic Log system implementation. More... | |
struct | oasys::Log::Rule |
Structure used to store a log rule as parsed from the debug file. More... | |
Defines | |
#define | PRINTFLIKE(a, b) |
#define | LOG_DEFAULT_THRESHOLD oasys::LOG_INFO |
#define | LOG_DEFAULT_DBGFILE "~/.debug" |
#define | LOG_MAX_PATHLEN (64) |
#define | LOG_MAX_LINELEN (512) |
#define | log_debug(args...) |
The set of macros below are implemented for more efficient implementation of logging functions. | |
#define | log_debug_p(p, args...) |
#define | log_info(args...) |
#define | log_info_p(p, args...) |
#define | log_notice(args...) |
#define | log_notice_p(p, args...) |
#define | log_warn(args...) |
#define | log_warn_p(p, args...) |
#define | log_err(args...) |
#define | log_err_p(p, args...) |
#define | log_crit(args...) |
#define | log_crit_p(p, args...) |
#define | log_always(args...) |
#define | log_always_p(p, args...) |
Enumerations | |
enum | oasys::log_level_t { oasys::LOG_INVALID = -1, oasys::LOG_DEBUG = 1, oasys::LOG_INFO = 2, oasys::LOG_NOTICE = 3, oasys::LOG_WARN = 4, oasys::LOG_ERR = 5, oasys::LOG_CRIT = 6, oasys::LOG_ALWAYS = 7 } |
Functions | |
const char * | oasys::level2str (log_level_t level) |
log_level_t | oasys::str2level (const char *level) |
void | oasys::__log_assert (bool x, const char *what, const char *file, int line) |
int | oasys::vlogf (const char *path, log_level_t level, const char *fmt, va_list ap) |
Global vlogf function. | |
int | oasys::logf (const char *path, log_level_t level, const char *fmt,...) |
Global logf function. | |
int | oasys::log_multiline (const char *path, log_level_t level, const char *msg) |
Global log_multiline function. | |
bool | oasys::log_enabled (log_level_t level, const char *path) |
Global function to determine if the log path is enabled. | |
Variables | |
level2str_t | oasys::log_levelnames [] |
#define log_always | ( | args... | ) |
Value:
(this->log_enabled((Can_Only_Be_Called_By_A_Logger)oasys::LOG_ALWAYS) ? \ this->logf(oasys::LOG_ALWAYS, ## args) : 0)
Definition at line 506 of file Log.h.
Referenced by dtn::LoggingRegistration::deliver_bundle().
#define log_always_p | ( | p, | |||
args... | ) |
Value:
((oasys::log_enabled(oasys::LOG_ALWAYS, (p))) ? \ oasys::logf((p), oasys::LOG_ALWAYS, ## args) : 0)
#define log_crit | ( | args... | ) |
Value:
(this->log_enabled((Can_Only_Be_Called_By_A_Logger)oasys::LOG_CRIT) ? \ this->logf(oasys::LOG_CRIT, ## args) : 0)
Definition at line 498 of file Log.h.
Referenced by dtn::BundleDaemon::cancel_custody_timers(), oasys::DurableStoreImpl::create_db_dir(), oasys::DurableStore::create_store(), dtn::BundleDaemon::delete_from_pending(), oasys::Notifier::drain_pipe(), dtn::APIClient::handle_bind(), dtn::APIClient::handle_unbind(), dtn::BundlePayload::init(), oasys::BerkeleyDBStore::init(), dtn::DTNServer::init_datastore(), dtn::DTNServer::init_dir(), dtn::BundlePayload::init_from_store(), dtntunnel::DTNTunnel::init_registration(), dtn::GlobalStore::load(), dtn::BundleDaemon::load_registrations(), dtn::Link::open(), dtn::UDPConvergenceLayer::send_bundle(), oasys::BerkeleyDBTable::size(), dtn::BundleActions::store_add(), dtn::BundleActions::store_del(), dtn::BundleActions::store_update(), dtn::DTNServer::tidy_dir(), dtn::DTNServer::validate_dir(), and dtn::APIClient::wait_for_bundle().
#define log_crit_p | ( | p, | |||
args... | ) |
Value:
((oasys::log_enabled(oasys::LOG_CRIT, (p))) ? \ oasys::logf((p), oasys::LOG_CRIT, ## args) : 0)
Definition at line 502 of file Log.h.
Referenced by dtnsim::Connectivity::create_conn(), main(), dtn::DTND::main(), and oasys::TypeCollectionInstance< _Collection >::new_object().
#define log_debug | ( | args... | ) |
Value:
(this->log_enabled((Can_Only_Be_Called_By_A_Logger)oasys::LOG_DEBUG) ? \ this->logf(oasys::LOG_DEBUG, ## args) : 0)
As noted in the comment above, these macros first check whether logging is enabled on the path and then call the output formatter. As such, all output string formatting and argument calculations are only done if the log path is enabled.
Since most users of logging are a subclass of Logger, the log_debug() style macros assume that they are being called in a method of a Logger class instance. To assist users with more informative error messages, these macros refer to the Can_Only_Be_Called_By_A_Logger typedef that won't be in scope for any non-Logger contexts.
The log_debug_p() variant should be used in global contexts.
Definition at line 456 of file Log.h.
Referenced by dtn::BluetoothConvergenceLayer::Connection::accept(), dtn::TCPConvergenceLayer::Listener::accepted(), dtn::BluetoothConvergenceLayer::Listener::accepted(), oasys::BerkeleyDBStore::acquire_table(), dtn::BundleList::add_bundle(), dtn::RouteTable::add_entry(), oasys::InitSequencer::add_extra_deps(), dtn::ContactManager::add_link(), oasys::TimerSystem::add_sighandler(), dtn::BundleDaemon::add_to_pending(), dtn::APIServer::APIServer(), dtn::StreamConvergenceLayer::Connection::break_contact(), dtn::CLConnection::break_contact(), dtn::GlobalStore::calc_digest(), dtn::BundleActions::cancel_bundle(), dtn::StreamConvergenceLayer::Connection::check_completed(), dtn::FragmentManager::check_completed(), dtn::TableBasedRouter::check_next_hop(), dtn::BundleDaemon::check_registrations(), dtn::CLConnection::check_unblock_link(), dtnsim::SimContact::chew_message(), dtnsim::SimContact::chewing_complete(), oasys::OpenFdCache< _Key, _CloseFcn >::close(), dtn::Link::close(), oasys::OpenFdCache< _Key, _CloseFcn >::close_all(), dtnsim::GlueNode::close_contact(), dtn::ConvergenceLayer::close_contact(), dtn::ConnectionConvergenceLayer::close_contact(), dtn::CLConnection::close_contact(), dtn::BundleActions::close_link(), dtn::APIClient::close_session(), dtn::IPDiscovery::configure(), oasys::IPSocket::connect(), oasys::BluetoothSocket::connect(), dtn::BluetoothConvergenceLayer::Connection::connect(), dtn::CLConnection::contact_up(), dtn::TcaRouter::create_route(), dtn::BundleList::del_bundle(), dtn::RouteTable::del_entries(), dtn::RouteTable::del_entries_for_nexthop(), dtn::RouteTable::del_entry(), dtn::ContactManager::del_link(), dtn::BundleActions::delete_bundle(), dtn::BundleDaemon::delete_from_pending(), dtn::PingRegistration::deliver_bundle(), dtn::LinkStateRouter::LSRegistration::deliver_bundle(), dtn::AdminRegistration::deliver_bundle(), dtn::BundleDaemon::deliver_to_registration(), dtn::BundleTLV::deserialize(), dtn::BundleEventHandler::dispatch_event(), oasys::TokenBucket::drain(), oasys::Notifier::drain_pipe(), oasys::TokenBucket::empty(), dtn::ProphetEncounter::enqueue_bundle_tlv(), dtn::ProphetEncounter::enqueue_hello(), dtn::ProphetEncounter::enqueue_rib(), dtn::ProphetEncounter::enqueue_ribd(), oasys::OpenFdCache< _Key, _CloseFcn >::evict(), oasys::Cache< _Key, _Val, _EvictFcn >::evict(), oasys::Cache< _Key, _Val, _EvictFcn >::evict_all(), oasys::Cache< _Key, _Val, _EvictFcn >::evict_last(), dtnsim::NodeCommand::exec(), dtn::BundleCommand::exec(), dtnsim::GlueNode::execute_router_action(), dtn::LinkScheduleEstimator::extract_schedule(), dtn::CLConnection::find_contact(), dtn::ProphetController::find_instance(), dtn::ContactManager::find_link_to(), dtn::LinkStateGraph::findNextHop(), oasys::BufferedOutput::flush(), dtn::TcaRouter::fwd_to_all(), dtn::TableBasedRouter::fwd_to_matching(), dtn::TcaRouter::fwd_to_matching_r(), dtn::TableBasedRouter::fwd_to_nexthop(), dtn::ProphetEncounter::fwd_to_nexthop(), dtn::BundleDaemon::generate_status_report(), oasys::Cache< _Key, _Val, _EvictFcn >::get(), oasys::OpenFdCache< _Key, _CloseFcn >::get_and_pin(), oasys::FileSystemTable::get_common(), dtn::RouteTable::get_matching(), dtn::RegistrationTable::get_matching(), dtn::ProphetEncounter::get_state(), oasys::BerkeleyDBStore::get_table(), dtn::LinkStateGraph::getMatchingVertex(), dtn::LinkStateGraph::getVertex(), dtn::StreamConvergenceLayer::Connection::handle_ack_segment(), dtn::TcaRouter::handle_add_route(), dtn::TcaRouter::handle_anonymous_bundle(), dtn::ProphetEncounter::handle_bad_protocol(), dtn::APIClient::handle_begin_poll(), dtn::TcaRouter::handle_bl_control_bundle(), dtntunnel::TCPTunnel::handle_bundle(), dtn::FloodBundleRouter::handle_bundle_expired(), dtn::TableBasedRouter::handle_bundle_received(), dtn::ProphetEncounter::handle_bundle_received(), dtn::ProphetController::handle_bundle_received(), dtn::LinkStateRouter::handle_bundle_received(), dtn::FloodBundleRouter::handle_bundle_received(), dtn::ProphetEncounter::handle_bundle_tlv(), dtn::TableBasedRouter::handle_bundle_transmit_failed(), dtn::TcaRouter::handle_bundle_transmitted(), dtn::TcaRouter::handle_coa(), dtn::TcaRouter::handle_contact_down(), dtn::StreamConvergenceLayer::Connection::handle_contact_initiation(), dtn::TcaRouter::handle_contact_up(), dtn::ContactManager::handle_contact_up(), dtn::StreamConvergenceLayer::Connection::handle_data_segment(), dtn::StreamConvergenceLayer::Connection::handle_data_todo(), dtn::TcaRouter::handle_del_route(), dtn::TcaRouter::handle_get_routes(), dtn::ProphetEncounter::handle_hello_tlv(), dtn::StreamConvergenceLayer::Connection::handle_keepalive(), dtn::TcaRouter::handle_link_available(), dtn::FloodBundleRouter::handle_link_created(), dtn::TcaRouter::handle_link_unavailable(), dtn::ContactManager::handle_link_unavailable(), dtn::APIClient::handle_local_eid(), dtn::ProphetEncounter::handle_neighbor_gone(), dtn::BluetoothConvergenceLayer::Connection::handle_poll_activity(), dtn::StreamConvergenceLayer::Connection::handle_poll_timeout(), dtn::ProphetEncounter::handle_poll_timeout(), dtn::ProphetEncounter::handle_prophet_tlv(), dtn::APIClient::handle_recv(), dtn::StreamConvergenceLayer::Connection::handle_refuse_bundle(), dtn::TcaRouter::handle_register(), dtn::ProphetEncounter::handle_rib_tlv(), dtn::ProphetEncounter::handle_ribd_tlv(), dtn::StreamConvergenceLayer::Connection::handle_shutdown(), dtn::TcaRouter::handle_shutdown_request(), dtn::BundleDaemon::handle_shutdown_request(), oasys::TimerSystem::handle_signals(), dtn::TcaRouter::handle_tca_unbound_bundle(), dtn::UDPConvergenceLayer::Sender::init(), dtn::DTNServer::init_commands(), dtn::DTNServer::init_components(), dtn::Registration::init_expiration_timer(), dtn::UDPConvergenceLayer::init_link(), dtn::ConvergenceLayer::init_link(), dtn::ConnectionConvergenceLayer::init_link(), dtntunnel::DTNTunnel::init_registration(), dtn::StreamConvergenceLayer::Connection::initiate_contact(), dtn::BundleActions::inject_bundle(), dtn::ConvergenceLayer::interface_down(), dtn::UDPConvergenceLayer::interface_up(), dtn::TCPConvergenceLayer::interface_up(), dtn::ConvergenceLayer::interface_up(), dtn::BluetoothConvergenceLayer::interface_up(), oasys::BufferedInput::internal_read(), oasys::BluetoothServiceDiscoveryClient::is_dtn_router(), dtn::GlobalStore::load(), oasys::Mutex::lock(), dtn::LinkScheduleEstimator::log_dist(), dtntunnel::DTNTunnel::main(), oasys::InitSequencer::mark_dep(), dtn::ProphetEncounter::neighbor_gone(), dtn::ContactManager::new_opportunistic_link(), oasys::BluetoothInquiry::next(), dtn::GlobalStore::next_bundleid(), dtn::GlobalStore::next_regid(), dtn::StreamConvergenceLayer::Connection::note_data_rcvd(), dtn::StreamConvergenceLayer::Connection::note_data_sent(), oasys::Notifier::Notifier(), oasys::Notifier::notify(), dtn::TcaRouter::on_adv_transmitted(), dtn::TcaRouter::on_ask_transmitted(), dtn::TcaRouter::on_coa_transmitted(), oasys::OnOffNotifier::OnOffNotifier(), dtn::Link::open(), dtn::UDPConvergenceLayer::open_contact(), dtnsim::SimpleNode::open_contact(), dtnsim::SimConvergenceLayer::open_contact(), dtnsim::GlueNode::open_contact(), dtn::ConnectionConvergenceLayer::open_contact(), dtn::BundleActions::open_link(), dtn::FwdDeciderGTMXPLUS::operator()(), dtn::FwdDeciderGRTRPLUS::operator()(), dtn::FwdDeciderGTMX::operator()(), dtn::FwdDeciderGRTR::operator()(), dtn::BlockingBundleList::pop_blocking(), oasys::TimerSystem::pop_timer(), dtn::TcaRouter::post_bundle(), dtnsim::Node::post_event(), dtn::BundleDaemon::post_event(), dtn::LinkScheduleEstimator::print_log(), dtnsim::TrAgent::process(), dtnsim::SimContact::process(), dtnsim::Node::process(), dtnsim::Node::process_bundle_events(), oasys::SMTP::process_cmd(), dtn::ProphetEncounter::process_command(), dtn::CLConnection::process_command(), dtn::UDPConvergenceLayer::Receiver::process_data(), dtn::StreamConvergenceLayer::Connection::process_data(), dtn::FragmentManager::process_for_reassembly(), oasys::SMTP::process_response(), dtn::ProphetBundleOffer::push(), oasys::MemoryTable::put(), oasys::FileSystemTable::put(), oasys::BerkeleyDBTable::put(), oasys::OpenFdCache< _Key, _CloseFcn >::put_and_pin(), oasys::Cache< _Key, _Val, _EvictFcn >::put_and_pin(), dtn::CLConnection::queue_bundle(), oasys::RFCOMMClient::rc_connect(), dtn::BundleTLV::read_bundle_offer(), oasys::BufferedInput::read_bytes(), oasys::BufferedInput::read_line(), dtn::RIBDTLV::read_ras_entry(), dtn::RIBTLV::read_rib_entry(), oasys::BufferedInput::read_some_bytes(), dtn::ProphetEncounter::receive_tlv(), dtn::BluetoothConvergenceLayer::Connection::recv_data(), oasys::BerkeleyDBStore::release_table(), dtn::ContactManager::reopen_link(), dtn::BundlePayload::replace_with_file(), oasys::BerkeleyDBStore::DeadlockTimer::reschedule(), dtn::ProphetEncounter::reset_link(), dtn::UDPConvergenceLayer::Receiver::run(), dtntunnel::TCPTunnel::Connection::run(), dtnsim::Simulator::run(), dtn::ProphetEncounter::run(), dtn::IPDiscovery::run(), dtn::CLConnection::run(), dtn::BundleDaemon::run(), dtn::BluetoothDiscovery::run(), dtn::APIClient::run(), oasys::TimerSystem::run_expired_timers(), oasys::InitSequencer::run_steps(), oasys::TimerSystem::schedule_at(), oasys::RateLimitedSocket::send(), dtnsim::TrAgent::send_bundle(), dtnsim::SimConvergenceLayer::send_bundle(), dtn::NullConvergenceLayer::send_bundle(), dtn::FileConvergenceLayer::send_bundle(), dtn::ConnectionConvergenceLayer::send_bundle(), dtn::BundleActions::send_bundle(), dtn::ProphetEncounter::send_bundle_offer(), dtn::StreamConvergenceLayer::Connection::send_data(), dtn::BluetoothConvergenceLayer::Connection::send_data(), dtn::StreamConvergenceLayer::Connection::send_data_todo(), dtn::ProphetEncounter::send_dictionary(), dtn::StreamConvergenceLayer::Connection::send_keepalive(), dtn::StreamConvergenceLayer::Connection::send_next_segment(), dtn::StreamConvergenceLayer::Connection::send_pending_acks(), dtn::ProphetEncounter::send_prophet_tlv(), dtn::APIClient::send_response(), oasys::RateLimitedSocket::sendto(), dtn::RIBDTLV::serialize(), dtn::ProphetEncounter::set_state(), dtn::Link::set_state(), dtnsim::Connectivity::set_state(), dtn::TableBasedRouter::should_fwd(), dtn::ProphetDecider::should_fwd(), dtn::ProphetEncounter::should_fwd(), dtnsim::SimRegistration::SimRegistration(), oasys::FileSystemTable::size(), dtn::DTNServer::start(), dtn::StreamConvergenceLayer::Connection::start_next_bundle(), dtn::BundleActions::store_add(), dtn::BundleActions::store_del(), dtn::BundleActions::store_update(), dtn::TclRegistration::TclRegistration(), dtn::DTNServer::tidy_dir(), oasys::TokenBucket::time_to_fill(), dtn::ProphetNode::time_to_units(), dtn::ProphetAckAgeTimer::timeout(), dtn::ProphetTableAgeTimer::timeout(), oasys::BerkeleyDBStore::DeadlockTimer::timeout(), oasys::TCPClient::timeout_connect(), oasys::TokenBucket::TokenBucket(), oasys::InitSequencer::topo_sort(), dtn::BundleDaemon::try_delete_from_pending(), oasys::Mutex::try_lock(), dtn::FragmentManager::try_to_convert_to_fragment(), dtn::FragmentManager::try_to_reactively_fragment(), oasys::Mutex::unlock(), oasys::OpenFdCache< _Key, _CloseFcn >::unpin(), oasys::Cache< _Key, _Val, _EvictFcn >::unpin(), oasys::TokenBucket::update(), dtn::GlobalStore::update(), dtn::ProphetNode::update_age(), dtn::ProphetNode::update_pvalue(), dtn::ProphetNode::update_transitive(), dtn::DTNServer::validate_dir(), oasys::OnOffNotifier::wait(), oasys::Notifier::wait(), dtn::APIClient::wait_for_bundle(), dtn::BundleTLV::write_bundle_offer(), dtn::BundlePayload::write_data(), dtn::RIBDTLV::write_ras_entry(), dtn::RIBTLV::write_rib_entry(), dtn::APIClient::~APIClient(), oasys::BerkeleyDBTable::~BerkeleyDBTable(), oasys::DurableStore::~DurableStore(), oasys::Mutex::~Mutex(), oasys::Notifier::~Notifier(), and oasys::OnOffNotifier::~OnOffNotifier().
#define log_debug_p | ( | p, | |||
args... | ) |
Value:
((oasys::log_enabled(oasys::LOG_DEBUG, (p))) ? \ oasys::logf((p), oasys::LOG_DEBUG, ## args) : 0)
Definition at line 460 of file Log.h.
Referenced by oasys::Thread::activate_start_barrier(), dtn::Bundle::add_ref(), dtn::CustodyTimerSpec::calculate_timeout(), dtn::PrimaryBlockProcessor::consume(), dtn::PayloadBlockProcessor::consume(), dtn::BundleProtocol::consume(), dtn::BlockProcessor::consume(), dtn::BlockProcessor::consume_preamble(), dtn::PrimaryBlockProcessor::debug_dump_dictionary(), dtn::Bundle::del_ref(), oasys::SMTPUtils::extract_address(), dtn::PrimaryBlockProcessor::extract_dictionary_eid(), dtn::PrimaryBlockProcessor::generate(), dtn::BundleProtocol::generate_blocks(), dtn::BlockProcessor::generate_preamble(), oasys::IO::get_nonblocking(), dtn::PrimaryBlockProcessor::get_primary_len(), dtn::Bundle::init(), oasys::Thread::interrupt(), dtn::log_bundle(), dtn::log_controlbundle(), dtn::TCAScheme::match(), dtn::DTNScheme::match(), oasys::IO::poll_with_notifier(), dtn::BundleProtocol::produce(), oasys::Thread::release_start_barrier(), oasys::IO::rwdata(), oasys::IO::rwvall(), oasys::IO::set_nonblocking(), oasys::Thread::start(), dtn::TCAScheme::validate(), dtn::DTNScheme::validate(), dtn::Bundle::~Bundle(), and oasys::SingletonBase::Fini::~Fini().
#define LOG_DEFAULT_THRESHOLD oasys::LOG_INFO |
#define log_err | ( | args... | ) |
Value:
(this->log_enabled((Can_Only_Be_Called_By_A_Logger)oasys::LOG_ERR) ? \ this->logf(oasys::LOG_ERR, ## args) : 0)
Definition at line 490 of file Log.h.
Referenced by dtn::BundleDaemon::accept_custody(), dtn::RegistrationTable::add(), dtn::InterfaceTable::add(), dtn::DiscoveryTable::add(), dtn::BundleList::add_bundle(), dtn::Discovery::announce(), dtn::APIServer::APIServer(), oasys::BerkeleyDBIterator::BerkeleyDBIterator(), dtn::StreamConvergenceLayer::Connection::check_completed(), oasys::DurableStoreImpl::check_db_dir(), dtnsim::SimContact::chewing_complete(), dtn::Link::close(), dtn::BundleActions::close_link(), dtn::IPDiscovery::configure(), dtn::IPAnnounce::configure(), dtn::BluetoothDiscovery::configure(), dtn::BluetoothAnnounce::configure(), oasys::BluetoothSocket::connect(), oasys::FileIOClient::copy_contents(), dtn::TcaRouter::create_link(), dtn::TcaRouter::create_route(), oasys::DurableStore::create_store(), dtn::RegistrationTable::del(), dtn::InterfaceTable::del(), oasys::FileSystemTable::del(), dtn::DiscoveryTable::del(), oasys::BerkeleyDBTable::del(), dtn::BundleList::del_bundle(), dtn::ContactManager::del_link(), oasys::BerkeleyDBStore::del_table(), dtn::BundleActions::delete_bundle(), dtn::BundleDaemon::delete_from_pending(), dtn::LinkStateRouter::LSRegistration::deliver_bundle(), dtn::AdminRegistration::deliver_bundle(), dtn::ProphetTLV::deserialize(), dtn::RIBTLV::deserialize(), dtn::RIBDTLV::deserialize(), dtn::HelloTLV::deserialize(), dtn::GlobalStore::do_init(), DTNRecvCommand::exec(), dtn::FileConvergenceLayer::extract_dir(), oasys::BufferedOutput::flush(), dtn::ProphetEncounter::fwd_to_nexthop(), dtn::BundleDaemon::generate_custody_signal(), oasys::MemoryTable::get(), oasys::BerkeleyDBTable::get(), oasys::FileSystemTable::get_common(), oasys::MemoryIterator::get_key(), oasys::BerkeleyDBIterator::get_key(), oasys::BerkeleyDBStore::get_meta_table(), oasys::FileSystemStore::get_table(), oasys::BerkeleyDBStore::get_table(), oasys::FileSystemStore::get_table_names(), oasys::BerkeleyDBStore::get_table_names(), dtn::StreamConvergenceLayer::Connection::handle_ack_segment(), dtn::APIClient::handle_begin_poll(), dtn::APIClient::handle_bind(), dtntunnel::UDPTunnel::handle_bundle(), dtntunnel::DTNTunnel::handle_bundle(), dtn::ProphetController::handle_bundle_received(), dtn::StreamConvergenceLayer::Connection::handle_contact_initiation(), dtn::BundleDaemon::handle_custody_timeout(), dtn::StreamConvergenceLayer::Connection::handle_data_segment(), dtn::StreamConvergenceLayer::Connection::handle_data_todo(), dtn::APIClient::handle_find_registration(), dtn::APIClient::handle_handshake(), dtn::ProphetEncounter::handle_hello_tlv(), dtn::BundleDaemon::handle_link_state_change_request(), dtn::ContactManager::handle_link_unavailable(), dtn::APIClient::handle_local_eid(), dtn::BluetoothConvergenceLayer::Connection::handle_poll_activity(), dtn::APIClient::handle_recv(), dtn::StreamConvergenceLayer::Connection::handle_refuse_bundle(), dtn::APIClient::handle_register(), dtn::BundleDaemon::handle_registration_added(), dtn::BundleDaemon::handle_registration_expired(), dtn::BundleDaemon::handle_registration_removed(), dtn::APIClient::handle_send(), dtn::StreamConvergenceLayer::Connection::handle_shutdown(), dtn::TcaRouter::handle_tca_unbound_bundle(), dtn::APIClient::handle_unbind(), dtn::APIClient::handle_unregister(), dtn::UDPConvergenceLayer::Sender::init(), oasys::FileSystemStore::init(), dtn::BundlePayload::init(), dtn::UDPConvergenceLayer::init_link(), dtnsim::SimConvergenceLayer::init_link(), dtn::ConnectionConvergenceLayer::init_link(), dtn::BluetoothConvergenceLayer::Connection::initialize_pollfds(), dtn::UDPConvergenceLayer::interface_up(), dtn::TCPConvergenceLayer::interface_up(), dtn::BluetoothConvergenceLayer::interface_up(), oasys::BerkeleyDBTable::key_exists(), dtntunnel::TCPTunnel::kill_connection(), dtn::BundleDaemon::load_bundles(), dtn::BundleDaemon::load_registrations(), dtntunnel::DTNTunnel::main(), oasys::MmapFile::map(), oasys::FileIOClient::mkstemp(), dtntunnel::TCPTunnel::new_connection(), oasys::BerkeleyDBIterator::next(), oasys::Notifier::notify(), dtn::UDPConvergenceLayer::open_contact(), dtn::BundleActions::open_link(), dtn::ProphetEncounter::outbound_tlv(), oasys::ExpatXMLParser::parse(), dtn::DTNServer::parse_conf_file(), dtn::TCPConvergenceLayer::parse_link_params(), dtn::BluetoothConvergenceLayer::parse_link_params(), dtn::TCPConvergenceLayer::parse_nexthop(), dtn::BundlePayload::pin_file(), dtn::UDPConvergenceLayer::Receiver::process_data(), dtn::StreamConvergenceLayer::Connection::process_data(), oasys::MemoryTable::put(), oasys::FileSystemTable::put(), oasys::BerkeleyDBTable::put(), oasys::RFCOMMServerThread::rc_bind(), oasys::RFCOMMClient::rc_connect(), dtn::ConnectionConvergenceLayer::reconfigure_link(), dtn::BluetoothConvergenceLayer::Connection::recv_data(), dtn::BundleDaemon::release_custody(), dtn::Discovery::remove(), dtn::ContactManager::reopen_link(), dtn::BundlePayload::replace_with_file(), dtntunnel::UDPTunnel::Listener::run(), dtn::UDPConvergenceLayer::Receiver::run(), dtntunnel::TCPTunnel::Connection::run(), dtn::ProphetEncounter::run(), dtn::IPDiscovery::run(), dtn::CLConnection::run(), dtn::BundleDaemon::run(), dtn::APIClient::run(), dtn::UDPConvergenceLayer::Sender::send_bundle(), dtn::FileConvergenceLayer::send_bundle(), dtntunnel::DTNTunnel::send_bundle(), dtn::BundleActions::send_bundle(), dtn::ProphetEncounter::send_prophet_tlv(), dtn::APIClient::send_response(), dtn::RIBTLV::serialize(), dtn::RIBDTLV::serialize(), dtn::TclRegistration::TclRegistration(), oasys::TCPClient::timeout_connect(), dtn::BundleDaemon::try_delete_from_pending(), oasys::MmapFile::unmap(), dtn::RegistrationTable::update(), dtn::FileConvergenceLayer::validate_dir(), dtn::APIClient::wait_for_bundle(), oasys::BerkeleyDBIterator::~BerkeleyDBIterator(), oasys::BerkeleyDBStore::~BerkeleyDBStore(), oasys::DurableStore::~DurableStore(), and oasys::Notifier::~Notifier().
#define log_err_p | ( | p, | |||
args... | ) |
Value:
((oasys::log_enabled(oasys::LOG_ERR, (p))) ? \ oasys::logf((p), oasys::LOG_ERR, ## args) : 0)
Definition at line 494 of file Log.h.
Referenced by dtn::BundleTimestamp::check_local_clock(), dtn::check_nargs(), dtn::PrimaryBlockProcessor::consume(), dtn::PreviousHopBlockProcessor::consume(), dtn::BundleProtocol::consume(), dtn::BlockProcessor::consume_preamble(), oasys::BerkeleyDBStore::db_errcall(), decode(), dtn::GlobalStore::do_init(), dtn::PrimaryBlockProcessor::extract_dictionary_eid(), main(), dtn::DTND::main(), dtn::BundleStatusReport::parse_status_report(), oasys::BasicSMTPSender::smtp_error(), dtn::BundleProtocol::validate(), and dtn::BlockProcessor::validate().
#define log_info | ( | args... | ) |
Value:
(this->log_enabled((Can_Only_Be_Called_By_A_Logger)oasys::LOG_INFO) ? \ this->logf(oasys::LOG_INFO, ## args) : 0)
Definition at line 466 of file Log.h.
Referenced by dtn::BundleRouter::accept_bundle(), dtn::BundleDaemon::accept_custody(), dtn::RegistrationTable::add(), dtn::InterfaceTable::add(), dtn::DiscoveryTable::add(), dtnsim::SimContact::chew_message(), dtnsim::SimpleNode::chewing_complete(), dtnsim::SimContact::chewing_complete(), dtn::UDPConvergenceLayer::close_contact(), dtnsim::SimContact::close_contact(), dtn::ConnectionConvergenceLayer::close_contact(), dtn::BluetoothConvergenceLayer::Connection::connect(), dtn::Contact::Contact(), oasys::DurableStore::create_store(), dtn::CustodyTimer::CustodyTimer(), dtn::RegistrationTable::del(), dtn::InterfaceTable::del(), dtn::DiscoveryTable::del(), oasys::MemoryStore::del_table(), oasys::BerkeleyDBStore::del_table(), dtnsim::SimRegistration::deliver_bundle(), dtn::LinkStateRouter::LSRegistration::deliver_bundle(), dtn::APIRegistration::deliver_bundle(), dtn::AdminRegistration::deliver_bundle(), dtn::GlobalStore::do_init(), dtnsim::FloodConsumer::enqueue_bundle(), dtnsim::Simdtn2Command::exec(), dtnsim::GlueNode::execute_router_action(), dtn::LinkStateGraph::findNextHop(), dtn::FloodBundleRouter::FloodBundleRouter(), dtnsim::FloodConsumer::FloodConsumer(), dtn::LinkStateGraph::getMatchingVertex(), dtnsim::GlueNode::GlueNode(), dtn::APIClient::handle_begin_poll(), dtn::APIClient::handle_bind(), dtntunnel::UDPTunnel::handle_bundle(), dtntunnel::TCPTunnel::Connection::handle_bundle(), dtntunnel::TCPTunnel::handle_bundle(), dtn::BundleDaemon::handle_bundle_accept(), dtn::BundleDaemon::handle_bundle_delivered(), dtn::BundleDaemon::handle_bundle_expired(), dtn::BundleDaemon::handle_bundle_received(), dtn::BundleDaemon::handle_bundle_transmit_failed(), dtn::BundleDaemon::handle_bundle_transmitted(), dtn::APIClient::handle_close(), dtn::LinkStateRouter::handle_contact_down(), dtn::BundleDaemon::handle_contact_down(), dtn::NeighborhoodRouter::handle_contact_up(), dtn::LinkStateRouter::handle_contact_up(), dtn::BundleDaemon::handle_contact_up(), dtn::BundleDaemon::handle_custody_signal(), dtn::BundleDaemon::handle_custody_timeout(), dtn::ProphetController::handle_hello_interval_change(), dtn::ProphetEncounter::handle_hello_tlv(), dtn::BundleDaemon::handle_link_available(), dtn::BundleDaemon::handle_link_state_change_request(), dtn::BundleDaemon::handle_link_unavailable(), dtn::ProphetController::handle_max_usage_change(), dtn::ProphetEncounter::handle_neighbor_gone(), dtn::BluetoothConvergenceLayer::Connection::handle_poll_activity(), dtn::StreamConvergenceLayer::Connection::handle_poll_timeout(), dtn::ProphetController::handle_queue_policy_change(), dtn::BundleDaemon::handle_reassembly_completed(), dtn::APIClient::handle_recv(), dtn::BundleDaemon::handle_registration_added(), dtn::BundleDaemon::handle_registration_expired(), dtn::BundleDaemon::handle_registration_removed(), dtn::BundleDaemon::handle_route_add(), dtn::BundleDaemon::handle_route_del(), dtn::APIClient::handle_send(), dtn::StreamConvergenceLayer::Connection::handle_shutdown(), dtn::BundleDaemon::handle_status_request(), dtn::APIClient::handle_unbind(), oasys::FileSystemStore::init(), oasys::BerkeleyDBStore::init(), dtn::ProphetRouter::initialize(), dtn::BundleList::insert_random(), dtn::LoggingRegistration::LoggingRegistration(), dtntunnel::DTNTunnel::main(), dtnsim::SimpleNode::message_received(), dtnsim::GlueNode::message_received(), dtn::ProphetController::neighbor_gone(), dtn::NeighborhoodRouter::NeighborhoodRouter(), dtn::ProphetController::new_neighbor(), dtnsim::Node::Node(), dtn::DTNServer::parse_conf_file(), oasys::InitSequencer::print_dot(), dtn::FragmentManager::proactively_fragment(), dtnsim::SimpleNode::process(), dtnsim::SimContact::process(), dtnsim::GlueNode::process(), oasys::SMTP::process_cmd(), oasys::SMTP::process_response(), dtn::ProphetRouter::ProphetRouter(), dtn::ConnectionConvergenceLayer::reconfigure_link(), dtn::BluetoothConvergenceLayer::Connection::recv_data(), dtn::ProphetController::reg(), dtn::BundleDaemon::release_custody(), dtntunnel::UDPTunnel::Listener::run(), dtntunnel::TCPTunnel::Connection::run(), dtnsim::Simulator::run(), dtn::FileConvergenceLayer::Scanner::run(), dtn::BluetoothDiscovery::run(), dtn::APIClient::run(), dtn::UDPConvergenceLayer::Sender::send_bundle(), dtnsim::TrAgent::send_bundle(), dtn::StreamConvergenceLayer::Connection::send_data(), dtn::BluetoothConvergenceLayer::Connection::send_data(), oasys::SMTP::server_session(), dtn::DTNServer::shutdown(), dtnsim::SimContact::SimContact(), dtn::TcaRouter::TcaRouter(), dtn::TclRegistration::TclRegistration(), dtn::CustodyTimer::timeout(), dtn::ProphetController::unreg(), dtn::RegistrationTable::update(), oasys::BerkeleyDBStore::~BerkeleyDBStore(), and oasys::MemoryStore::~MemoryStore().
#define log_info_p | ( | p, | |||
args... | ) |
Value:
((oasys::log_enabled(oasys::LOG_INFO, (p))) ? \ oasys::logf((p), oasys::LOG_INFO, ## args) : 0)
Definition at line 470 of file Log.h.
Referenced by main(), dtn::DTND::main(), and dtn::DTND::run_console().
#define LOG_MAX_LINELEN (512) |
Definition at line 112 of file Log.h.
Referenced by oasys::Log::log_multiline(), and oasys::Log::vlogf().
#define LOG_MAX_PATHLEN (64) |
Definition at line 111 of file Log.h.
Referenced by oasys::Log::log_multiline(), and oasys::Log::vlogf().
#define log_notice | ( | args... | ) |
Value:
(this->log_enabled((Can_Only_Be_Called_By_A_Logger)oasys::LOG_NOTICE) ? \ this->logf(oasys::LOG_NOTICE, ## args) : 0)
Definition at line 474 of file Log.h.
Referenced by dtn::DTNServer::close_datastore(), oasys::DurableStoreImpl::create_db_dir(), dtn::BundleDaemon::handle_bundle_received(), dtn::BundleDaemon::handle_custody_signal(), dtn::BundleDaemon::handle_shutdown_request(), dtn::ProphetEncounter::hello_interval_changed(), oasys::FileSystemStore::init_database(), dtntunnel::DTNTunnel::init_registration(), dtn::BundleDaemon::load_bundles(), dtntunnel::DTNTunnel::main(), oasys::DurableStoreImpl::prune_db_dir(), dtn::DTNServer::shutdown(), oasys::FileSystemStore::tidy_database(), dtn::DTNServer::tidy_dir(), and dtn::DTNServer::~DTNServer().
#define log_notice_p | ( | p, | |||
args... | ) |
Value:
((oasys::log_enabled(oasys::LOG_NOTICE, (p))) ? \ oasys::logf((p), oasys::LOG_NOTICE, ## args) : 0)
Definition at line 478 of file Log.h.
Referenced by main(), dtn::DTND::main(), and dtn::DTND::seed_random().
#define log_warn | ( | args... | ) |
Value:
(this->log_enabled((Can_Only_Be_Called_By_A_Logger)oasys::LOG_WARN) ? \ this->logf(oasys::LOG_WARN, ## args) : 0)
Definition at line 482 of file Log.h.
Referenced by oasys::InitSequencer::add_step(), dtn::BundleDaemon::add_to_pending(), dtn::StreamConvergenceLayer::Connection::check_keepalive(), oasys::OpenFdCache< _Key, _CloseFcn >::close_all(), dtn::CLConnection::close_contact(), dtn::IPDiscovery::configure(), dtn::BluetoothDiscovery::configure(), oasys::FileSystemTable::del(), oasys::FileSystemStore::del_table(), dtn::LinkStateRouter::LSRegistration::deliver_bundle(), dtn::AdminRegistration::deliver_bundle(), oasys::Notifier::drain_pipe(), oasys::OpenFdCache< _Key, _CloseFcn >::evict(), oasys::Cache< _Key, _Val, _EvictFcn >::evict_all(), oasys::Cache< _Key, _Val, _EvictFcn >::evict_last(), oasys::TclCommandInterp::exit_event_loop(), dtn::CLConnection::find_contact(), oasys::BerkeleyDBStore::get_table(), dtn::BundleDaemon::handle_bundle_received(), dtn::StreamConvergenceLayer::Connection::handle_contact_initiation(), dtn::BundleDaemon::handle_custody_signal(), dtn::ContactManager::handle_link_available(), dtn::BundleDaemon::handle_link_state_change_request(), dtn::IPAnnounce::handle_neighbor_discovered(), oasys::FileSystemStore::init_database(), dtn::Registration::init_expiration_timer(), dtn::StreamConvergenceLayer::Connection::initiate_contact(), oasys::Notifier::notify(), dtn::DTNServer::parse_conf_file(), dtn::TCPConvergenceLayer::parse_nexthop(), dtn::IPConvergenceLayer::parse_nexthop(), dtn::BluetoothConvergenceLayer::parse_nexthop(), oasys::TimerSystem::pop_timer(), oasys::SMTP::process_cmd(), dtn::StreamConvergenceLayer::Connection::process_data(), oasys::SMTP::process_response(), oasys::DurableStoreImpl::prune_db_dir(), oasys::FileSystemTable::put(), dtn::IPDiscovery::run(), dtn::BundleDaemon::run(), dtn::APIClient::run(), oasys::InitSequencer::run_steps(), oasys::SMTP::server_session(), and oasys::BerkeleyDBStore::DeadlockTimer::timeout().
#define log_warn_p | ( | p, | |||
args... | ) |
Value:
((oasys::log_enabled(oasys::LOG_WARN, (p))) ? \ oasys::logf((p), oasys::LOG_WARN, ## args) : 0)
Definition at line 486 of file Log.h.
Referenced by dtn::PrimaryBlockProcessor::consume(), dtn::TCAScheme::match(), dtn::DTNScheme::match(), dtn::IPConvergenceLayerUtils::parse_nexthop(), and oasys::IO::poll_with_notifier().