PionNetworkLibrary
|
Classes | |
struct | pion::logger |
Namespaces | |
pion | |
Macros | |
#define | PION_USE_OSTREAM_LOGGING |
#define | PION_LOG_CONFIG_BASIC {} |
#define | PION_LOG_CONFIG(FILE) {} |
#define | PION_GET_LOGGER(NAME) pion::logger(NAME) |
#define | PION_SHUTDOWN_LOGGER {} |
#define | PION_LOG_SETLEVEL_DEBUG(LOG) { LOG.m_priority = pion::logger::LOG_LEVEL_DEBUG; } |
#define | PION_LOG_SETLEVEL_INFO(LOG) { LOG.m_priority = pion::logger::LOG_LEVEL_INFO; } |
#define | PION_LOG_SETLEVEL_WARN(LOG) { LOG.m_priority = pion::logger::LOG_LEVEL_WARN; } |
#define | PION_LOG_SETLEVEL_ERROR(LOG) { LOG.m_priority = pion::logger::LOG_LEVEL_ERROR; } |
#define | PION_LOG_SETLEVEL_FATAL(LOG) { LOG.m_priority = pion::logger::LOG_LEVEL_FATAL; } |
#define | PION_LOG_SETLEVEL_UP(LOG) { ++LOG.m_priority; } |
#define | PION_LOG_SETLEVEL_DOWN(LOG) { --LOG.m_priority; } |
#define | PION_LOG_DEBUG(LOG, MSG) if (LOG.m_priority <= pion::logger::LOG_LEVEL_DEBUG) { std::cout << time(NULL) << " DEBUG " << LOG.m_name << ' ' << MSG << std::endl; } |
#define | PION_LOG_INFO(LOG, MSG) if (LOG.m_priority <= pion::logger::LOG_LEVEL_INFO) { std::cout << time(NULL) << " INFO " << LOG.m_name << ' ' << MSG << std::endl; } |
#define | PION_LOG_WARN(LOG, MSG) if (LOG.m_priority <= pion::logger::LOG_LEVEL_WARN) { std::cerr << time(NULL) << " WARN " << LOG.m_name << ' ' << MSG << std::endl; } |
#define | PION_LOG_ERROR(LOG, MSG) if (LOG.m_priority <= pion::logger::LOG_LEVEL_ERROR) { std::cerr << time(NULL) << " ERROR " << LOG.m_name << ' ' << MSG << std::endl; } |
#define | PION_LOG_FATAL(LOG, MSG) if (LOG.m_priority <= pion::logger::LOG_LEVEL_FATAL) { std::cerr << time(NULL) << " FATAL " << LOG.m_name << ' ' << MSG << std::endl; } |
Typedefs | |
typedef int | pion::log_appender |
typedef log_appender * | pion::log_appender_ptr |
#define PION_GET_LOGGER | ( | NAME | ) | pion::logger(NAME) |
Referenced by pion::http::basic_auth::basic_auth(), pion::test::config::config(), pion::http::cookie_auth::cookie_auth(), pion::http::plugin_server::plugin_server(), pion::http::request_reader::request_reader(), pion::http::request_writer::request_writer(), pion::http::response_reader::response_reader(), pion::http::response_writer::response_writer(), and pion::http::server::server().
#define PION_LOG_CONFIG | ( | FILE | ) | {} |
#define PION_LOG_CONFIG_BASIC {} |
Referenced by pion::test::config::config().
#define PION_LOG_DEBUG | ( | LOG, | |
MSG | |||
) | if (LOG.m_priority <= pion::logger::LOG_LEVEL_DEBUG) { std::cout << time(NULL) << " DEBUG " << LOG.m_name << ' ' << MSG << std::endl; } |
Referenced by pion::admin_rights::admin_rights(), pion::http::reader::consume_bytes(), pion::http::server::handle_request(), pion::http::request_writer::handle_write(), pion::http::response_writer::handle_write(), pion::http::parser::parse_chunks(), pion::http::parser::parse_headers(), pion::admin_rights::release(), and pion::multi_thread_scheduler::stop_threads().
#define PION_LOG_ERROR | ( | LOG, | |
MSG | |||
) | if (LOG.m_priority <= pion::logger::LOG_LEVEL_ERROR) { std::cerr << time(NULL) << " ERROR " << LOG.m_name << ' ' << MSG << std::endl; } |
Referenced by pion::admin_rights::admin_rights(), pion::http::parser::finish_header_parsing(), pion::http::server::handle_request(), pion::spdy::parser::parse_header_payload(), pion::spdy::parser::parse_spdy_frame(), pion::spdy::parser::parse_spdy_goaway_frame(), pion::spdy::parser::populate_frame(), pion::scheduler::process_service_work(), pion::admin_rights::release(), and pion::tcp::server::start().
#define PION_LOG_FATAL | ( | LOG, | |
MSG | |||
) | if (LOG.m_priority <= pion::logger::LOG_LEVEL_FATAL) { std::cerr << time(NULL) << " FATAL " << LOG.m_name << ' ' << MSG << std::endl; } |
#define PION_LOG_INFO | ( | LOG, | |
MSG | |||
) | if (LOG.m_priority <= pion::logger::LOG_LEVEL_INFO) { std::cout << time(NULL) << " INFO " << LOG.m_name << ' ' << MSG << std::endl; } |
Referenced by pion::http::auth::add_permit(), pion::http::server::add_redirect(), pion::http::server::add_resource(), pion::http::auth::add_restrict(), pion::http::plugin_server::add_service(), pion::http::server::handle_request(), pion::http::plugin_server::load_service(), pion::spdy::parser::parse_spdy_goaway_frame(), pion::spdy::parser::parse_spdy_ping_frame(), pion::spdy::parser::parse_spdy_rst_stream(), pion::http::server::remove_resource(), pion::http::plugin_server::set_service_option(), pion::scheduler::shutdown(), pion::tcp::server::start(), pion::single_service_scheduler::startup(), pion::one_to_one_scheduler::startup(), and pion::tcp::server::stop().
#define PION_LOG_SETLEVEL_DEBUG | ( | LOG | ) | { LOG.m_priority = pion::logger::LOG_LEVEL_DEBUG; } |
#define PION_LOG_SETLEVEL_DOWN | ( | LOG | ) | { --LOG.m_priority; } |
#define PION_LOG_SETLEVEL_ERROR | ( | LOG | ) | { LOG.m_priority = pion::logger::LOG_LEVEL_ERROR; } |
#define PION_LOG_SETLEVEL_FATAL | ( | LOG | ) | { LOG.m_priority = pion::logger::LOG_LEVEL_FATAL; } |
#define PION_LOG_SETLEVEL_INFO | ( | LOG | ) | { LOG.m_priority = pion::logger::LOG_LEVEL_INFO; } |
#define PION_LOG_SETLEVEL_UP | ( | LOG | ) | { ++LOG.m_priority; } |
#define PION_LOG_SETLEVEL_WARN | ( | LOG | ) | { LOG.m_priority = pion::logger::LOG_LEVEL_WARN; } |
Referenced by pion::test::config::config().
#define PION_LOG_WARN | ( | LOG, | |
MSG | |||
) | if (LOG.m_priority <= pion::logger::LOG_LEVEL_WARN) { std::cerr << time(NULL) << " WARN " << LOG.m_name << ' ' << MSG << std::endl; } |
#define PION_SHUTDOWN_LOGGER {} |
#define PION_USE_OSTREAM_LOGGING |