monitube2-data_logging.h

Go to the documentation of this file.
00001 /*
00002  * $Id: monitube2-data_logging.h 347265 2009-11-19 13:55:39Z kdickman $
00003  *
00004  * This code is provided as is by Juniper Networks SDK Developer Support.
00005  * It is provided with no warranties or guarantees, and Juniper Networks
00006  * will not provide support or maintenance of this code in any fashion.
00007  * The code is provided only to help a developer better understand how
00008  * the SDK can be used.
00009  * 
00010  * Copyright (c) 2009, Juniper Networks, Inc.
00011  * All rights reserved.
00012  */
00013 
00021 #ifndef __MONITUBE2_DATA_LOGGING_H__
00022 #define __MONITUBE2_DATA_LOGGING_H__
00023 
00024 #include <jnx/logging.h>
00025 
00026 /*** Constants ***/
00027 
00031 #define CLOG(_level, _fmt...)   \
00032     logging((_level), "MONITUBE PLUG-IN: " _fmt)
00033 
00037 #define DLOG(_level, _fmt...)   \
00038     msp_log((_level), "MONITUBE PLUG-IN: " _fmt)
00039 
00043 #define INSIST_ERR(c) if (!(c)) \
00044     logging(LOG_EMERG, "MONITUBE PLUG-IN: %s:%d: insist '%s' failed!", \
00045         __FILE__, __LINE__, #c); else (void)NULL
00046 
00047 /*** Data structures ***/
00048 
00049 
00050 /*** GLOBAL/EXTERNAL Functions ***/
00051 
00052 #endif
00053 

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