#include <iostream>
#include <cstdlib>
#include <log4cxx/logger.h>
#include <log4cxx/basicconfigurator.h>
Go to the source code of this file.
Defines | |
#define | colorDefault { } |
#define | colorDebug { } |
#define | colorInfo { } |
#define | colorWarn { } |
#define | colorError { } |
#define | use_logging_h(x) private: static log4cxx::LoggerPtr logger; |
#define | use_logging_cpp(x) log4cxx::LoggerPtr x::logger(log4cxx::Logger::getLogger(#x)); |
#define | logging_trace(x) { LOG4CXX_TRACE(logger,x); } |
#define | logging_debug(x) {colorDebug; LOG4CXX_DEBUG(logger,x); colorDefault; } |
#define | logging_info(x) {colorInfo; LOG4CXX_INFO(logger,x); colorDefault; } |
#define | logging_warn(x) {colorWarn; LOG4CXX_WARN(logger,x); colorDefault; } |
#define | logging_error(x) {colorError; LOG4CXX_ERROR(logger,x); colorDefault; } |
#define | logging_fatal(x) {colorError; LOG4CXX_FATAL(logger,x); colorDefault; exit(-1); } |
#define logging_debug | ( | x | ) | {colorDebug; LOG4CXX_DEBUG(logger,x); colorDefault; } |
Definition at line 73 of file Logging.h.
Referenced by ariba::AribaModule::addBootstrapHints(), ariba::AribaModule::addBootstrapNode(), ariba::overlay::BaseOverlay::bind(), ariba::utility::PathloadMeasurement::blockingFunction(), ariba::overlay::BaseOverlay::broadcastMessage(), ariba::utility::SystemQueue::SystemQueue::QueueThread::cancel(), ariba::communication::BaseCommunication::dropLink(), ariba::communication::BaseCommunication::establishLink(), ariba::overlay::OneHop::eventFunction(), ariba::overlay::Chord::eventFunction(), ariba::communication::NetworkChangeDetection::extractAddressEvent(), ariba::communication::NetworkChangeDetection::extractInterfaceEvent(), ariba::transport::rfcomm::handle_accept(), ariba::transport::rfcomm::handle_connect(), ariba::transport::rfcomm::handle_write_data(), ariba::overlay::BaseOverlay::handleData(), ariba::overlay::BaseOverlay::handleJoinReply(), ariba::overlay::BaseOverlay::handleJoinRequest(), ariba::overlay::BaseOverlay::handleLinkAlive(), ariba::overlay::BaseOverlay::handleLinkDirect(), ariba::overlay::BaseOverlay::handleLinkReply(), ariba::overlay::BaseOverlay::handleLinkUpdate(), ariba::overlay::BaseOverlay::handleMessage(), ariba::communication::BaseCommunication::handleSystemEvent(), ariba::overlay::BaseOverlay::joinSpoVNet(), ariba::overlay::BaseOverlay::leaveSpoVNet(), ariba::communication::NetworkChangeDetection::monitoringThreadFunc(), ariba::overlay::BaseOverlay::onLinkChanged(), ariba::overlay::OneHop::onLinkDown(), ariba::overlay::Chord::onLinkDown(), ariba::overlay::BaseOverlay::onLinkFail(), ariba::overlay::BaseOverlay::onLinkQoSChanged(), ariba::overlay::BaseOverlay::onLinkRequest(), ariba::overlay::OneHop::onLinkUp(), ariba::overlay::BaseOverlay::onLinkUp(), ariba::overlay::OneHop::onMessage(), ariba::overlay::Chord::onMessage(), ariba::utility::OvlVis::OvlVis(), ariba::utility::MulticastDns::publishService(), ariba::utility::BluetoothSdp::publishService(), ariba::communication::BaseCommunication::receiveMessage(), ariba::utility::BootstrapManager::registerModule(), ariba::overlay::OneHop::resolveNode(), ariba::utility::MulticastDns::revokeService(), ariba::utility::BluetoothSdp::revokeService(), ariba::overlay::OneHop::routeMessage(), ariba::transport::rfcomm::send(), ariba::overlay::BaseOverlay::send(), ariba::overlay::BaseOverlay::sendMessage(), ariba::communication::BaseCommunication::sendMessage(), ariba::overlay::Chord::setup(), ariba::transport::rfcomm::start_read(), ariba::communication::NetworkChangeDetection::startMonitoring(), ariba::application::pingpong::PingPong::startup(), ariba::communication::NetworkChangeDetection::stopMonitoring(), ariba::utility::SystemQueue::SystemQueue::QueueThread::threadFunc(), ariba::overlay::BaseOverlay::unbind(), and ariba::utility::BootstrapManager::unregisterModule().
#define logging_error | ( | x | ) | {colorError; LOG4CXX_ERROR(logger,x); colorDefault; } |
Definition at line 76 of file Logging.h.
Referenced by ariba::overlay::BaseOverlay::bind(), ariba::communication::BaseCommunication::dropLink(), ariba::overlay::BaseOverlay::establishDirectLink(), ariba::communication::NetworkChangeDetection::extractInterfaceEvent(), ariba::utility::Identifier::get(), ariba::overlay::BaseOverlay::getEndpointDescriptor(), ariba::communication::NetworkInformation::getInterfaces(), ariba::overlay::BaseOverlay::getListener(), ariba::transport::rfcomm::handle_accept(), ariba::transport::rfcomm::handle_connect(), ariba::transport::rfcomm::handle_read_data(), ariba::transport::rfcomm::handle_read_header(), ariba::transport::rfcomm::handle_write_data(), ariba::overlay::BaseOverlay::handleJoinReply(), ariba::overlay::BaseOverlay::handleJoinRequest(), ariba::overlay::BaseOverlay::handleLinkAlive(), ariba::overlay::BaseOverlay::handleLinkDirect(), ariba::overlay::BaseOverlay::handleLinkReply(), ariba::overlay::BaseOverlay::handleMessage(), ariba::utility::Identifier::Identifier(), ariba::overlay::BaseOverlay::joinSpoVNet(), ariba::communication::NetworkChangeDetection::monitoringThreadFunc(), ariba::application::pingpong::PingPong::onJoinFailed(), ariba::application::pingpong::PingPong::onLeaveFailed(), ariba::utility::MulticastDns::publishService(), ariba::utility::BluetoothSdp::publishService(), ariba::utility::Configuration::read(), ariba::utility::BootstrapManager::registerModule(), ariba::overlay::OneHop::routeMessage(), ariba::transport::rfcomm::send(), ariba::overlay::BaseOverlay::send(), ariba::overlay::BaseOverlay::send_link(), ariba::overlay::BaseOverlay::sendMessage(), ariba::communication::BaseCommunication::sendMessage(), ariba::utility::Identifier::setKeyLength(), ariba::utility::MulticastDns::start(), and ariba::utility::Identifier::toString().
#define logging_fatal | ( | x | ) | {colorError; LOG4CXX_FATAL(logger,x); colorDefault; exit(-1); } |
Definition at line 77 of file Logging.h.
Referenced by ariba::overlay::BaseOverlay::createSpoVNet().
#define logging_info | ( | x | ) | {colorInfo; LOG4CXX_INFO(logger,x); colorDefault; } |
Definition at line 74 of file Logging.h.
Referenced by ariba::utility::PathloadMeasurement::blockingFunction(), ariba::overlay::OverlayBootstrap::checkOverlayStatus(), ariba::overlay::OneHop::createOverlay(), ariba::overlay::BaseOverlay::createSpoVNet(), ariba::overlay::OneHop::deleteOverlay(), ariba::overlay::BaseOverlay::dropLink(), ariba::overlay::BaseOverlay::establishDirectLink(), ariba::overlay::BaseOverlay::establishLink(), ariba::overlay::Chord::eventFunction(), ariba::application::pingpong::PingPong::eventFunction(), ariba::overlay::BaseOverlay::handleJoinReply(), ariba::overlay::BaseOverlay::handleJoinRequest(), ariba::overlay::BaseOverlay::handleLinkDirect(), ariba::overlay::BaseOverlay::handleLinkReply(), ariba::overlay::BaseOverlay::handleLinkRequest(), ariba::overlay::BaseOverlay::handleLinkUpdate(), ariba::overlay::OverlayBootstrap::handleSystemEvent(), ariba::overlay::OneHop::joinOverlay(), ariba::overlay::Chord::joinOverlay(), ariba::overlay::BaseOverlay::joinSpoVNet(), ariba::overlay::OneHop::leaveOverlay(), ariba::overlay::BaseOverlay::leaveSpoVNet(), ariba::utility::PathloadMeasurement::measure(), ariba::communication::NetworkChangeDetection::monitoringThreadFunc(), ariba::application::pingpong::PingPong::onJoinCompleted(), ariba::application::pingpong::PingPong::onLeaveCompleted(), ariba::application::pingpong::PingPong::onLinkChanged(), ariba::overlay::BaseOverlay::onLinkDown(), ariba::application::pingpong::PingPong::onLinkDown(), ariba::application::pingpong::PingPong::onLinkFail(), ariba::application::pingpong::PingPong::onLinkRequest(), ariba::overlay::Chord::onLinkUp(), ariba::overlay::BaseOverlay::onLinkUp(), ariba::application::pingpong::PingPong::onLinkUp(), ariba::overlay::OneHop::onMessage(), ariba::application::pingpong::PingPong::onMessage(), ariba::overlay::BaseOverlay::onNodeJoin(), ariba::utility::BootstrapManager::publish(), ariba::overlay::OverlayBootstrap::recordJoin(), ariba::overlay::BaseOverlay::refreshRelayInformation(), ariba::communication::BaseCommunication::remove_endpoint(), ariba::utility::BootstrapManager::revoke(), ariba::overlay::BaseOverlay::sendMessage(), ariba::communication::BaseCommunication::setEndpoints(), ariba::overlay::Chord::setup(), ariba::overlay::Chord::showLinks(), ariba::overlay::BaseOverlay::showLinks(), ariba::application::pingpong::PingPong::shutdown(), ariba::overlay::BaseOverlay::stabilizeLinks(), ariba::overlay::BaseOverlay::stabilizeRelays(), ariba::transport::rfcomm::start(), ariba::overlay::OverlayBootstrap::start(), ariba::overlay::BaseOverlay::start(), ariba::communication::BaseCommunication::start(), ariba::transport::rfcomm::start_accept(), ariba::application::pingpong::PingPong::startup(), ariba::transport::rfcomm::stop(), ariba::overlay::OverlayBootstrap::stop(), ariba::overlay::BaseOverlay::stop(), and ariba::communication::BaseCommunication::stop().
#define logging_warn | ( | x | ) | {colorWarn; LOG4CXX_WARN(logger,x); colorDefault; } |
Definition at line 75 of file Logging.h.
Referenced by ariba::overlay::BaseOverlay::bind(), ariba::utility::PathloadMeasurement::blockingFunction(), ariba::overlay::BaseOverlay::dropLink(), ariba::utility::PeriodicBroadcast::PeriodicBroadcast::udp_server::handle_receive_4(), ariba::utility::PeriodicBroadcast::PeriodicBroadcast::udp_server::handle_receive_6(), ariba::utility::PeriodicBroadcast::PeriodicBroadcast::udp_server::handle_send(), ariba::overlay::BaseOverlay::handleLinkReply(), ariba::overlay::BaseOverlay::handleLinkUpdate(), ariba::utility::PathloadMeasurement::measure(), ariba::overlay::BaseOverlay::onLinkDown(), ariba::utility::PeriodicBroadcast::PeriodicBroadcast::udp_server::open4(), ariba::utility::PeriodicBroadcast::PeriodicBroadcast::udp_server::open6(), ariba::utility::OvlVis::OvlVis(), ariba::utility::PathloadMeasurement::PathloadMeasurement(), ariba::utility::MulticastDns::publishService(), ariba::communication::BaseCommunication::receiveMessage(), ariba::utility::MulticastDns::revokeService(), ariba::overlay::BaseOverlay::route(), ariba::overlay::BaseOverlay::send(), ariba::utility::PeriodicBroadcast::PeriodicBroadcast::udp_server::sendservice(), and ariba::overlay::BaseOverlay::unbind().
#define use_logging_cpp | ( | x | ) | log4cxx::LoggerPtr x::logger(log4cxx::Logger::getLogger(#x)); |
#define use_logging_h | ( | x | ) | private: static log4cxx::LoggerPtr logger; |