monitube2-data_logging.h File Reference

Relating to logging. More...

#include <jnx/logging.h>

Go to the source code of this file.

Defines

#define CLOG(_level, _fmt...)   logging((_level), "MONITUBE PLUG-IN: " _fmt)
#define DLOG(_level, _fmt...)   msp_log((_level), "MONITUBE PLUG-IN: " _fmt)
#define INSIST_ERR(c)


Detailed Description

Relating to logging.

These functions / macros are for logging in this component

Definition in file monitube2-data_logging.h.


Define Documentation

#define CLOG ( _level,
_fmt...   )     logging((_level), "MONITUBE PLUG-IN: " _fmt)

Ctrl-side logging

Definition at line 31 of file monitube2-data_logging.h.

Referenced by add_address(), apply_rule(), clear_config(), connect_mgmt(), delete_address(), delete_rule(), delete_serviceset(), init_config(), init_connections(), mgmt_client_connection(), mgmt_client_message(), monitube2_entry(), monitube_ctrl_hdlr(), process_notifications(), remove_rule(), retry_attach_fdb(), TAILQ_HEAD(), and update_rule().

#define DLOG ( _level,
_fmt...   )     msp_log((_level), "MONITUBE PLUG-IN: " _fmt)

(More efficient) Data-side logging

Definition at line 37 of file monitube2-data_logging.h.

Referenced by get_monitored_rule_info(), monitube_data_hdlr(), process_packet(), pullup_bytes(), and update_stats_for_flow().

#define INSIST_ERR (  ) 

Value:

if (!(c)) \
    logging(LOG_EMERG, "MONITUBE PLUG-IN: %s:%d: insist '%s' failed!", \
        __FILE__, __LINE__, #c); else (void)NULL
Define an INSIST/assert with logging

Definition at line 43 of file monitube2-data_logging.h.

Referenced by add_address(), apply_rule(), close_connections(), mgmt_client_connection(), mgmt_client_message(), notify_stat_update(), TAILQ_HEAD(), and update_rule().


2007-2009 Juniper Networks, Inc. All rights reserved. The information contained herein is confidential information of Juniper Networks, Inc., and may not be used, disclosed, distributed, modified, or copied without the prior written consent of Juniper Networks, Inc. in an express license. This information is subject to change by Juniper Networks, Inc. Juniper Networks, the Juniper Networks logo, and JUNOS are registered trademarks of Juniper Networks, Inc. in the United States and other countries. All other trademarks, service marks, registered trademarks, or registered service marks are the property of their respective owners.
Generated on Sun May 30 20:27:09 2010 for SDK Your Net Corporation Monitube2 IPTV Monitoring Example: monitube2-plugin 1.0 by Doxygen 1.5.1