SAI Metadata
Loading...
Searching...
No Matches
saimetadatalogger.h File Reference

This module defines SAI Metadata Logger. More...

Go to the source code of this file.

Macros

#define SAI_META_LOG(loglevel, format, ...)
 Helper log macro definition.
 
#define SAI_META_LOG_ENTER()   SAI_META_LOG(SAI_LOG_LEVEL_DEBUG, ":> enter");
 
#define SAI_META_LOG_DEBUG(format, ...)   SAI_META_LOG(SAI_LOG_LEVEL_DEBUG, ":- " format, ##__VA_ARGS__)
 
#define SAI_META_LOG_INFO(format, ...)   SAI_META_LOG(SAI_LOG_LEVEL_INFO, ":- " format, ##__VA_ARGS__)
 
#define SAI_META_LOG_NOTICE(format, ...)   SAI_META_LOG(SAI_LOG_LEVEL_NOTICE, ":- " format, ##__VA_ARGS__)
 
#define SAI_META_LOG_WARN(format, ...)   SAI_META_LOG(SAI_LOG_LEVEL_WARN, ":- " format, ##__VA_ARGS__)
 
#define SAI_META_LOG_ERROR(format, ...)   SAI_META_LOG(SAI_LOG_LEVEL_ERROR, ":- " format, ##__VA_ARGS__)
 
#define SAI_META_LOG_CRITICAL(format, ...)   SAI_META_LOG(SAI_LOG_LEVEL_CRITICAL, ":- " format, ##__VA_ARGS__)
 
#define SAI_META_LOG_EXIT()   SAI_META_LOG(SAI_LOG_LEVEL_DEBUG, ":< exit");
 

Typedefs

typedef void(* sai_metadata_log_fn) (_In_ sai_log_level_t log_level, _In_ const char *file, _In_ int line, _In_ const char *function, _In_ const char *format, _In_ ...)
 Log level function definition.
 

Variables

volatile sai_metadata_log_fn sai_metadata_log
 User specified log function.
 
volatile sai_log_level_t sai_metadata_log_level
 Log level for SAI metadata macros.
 

Detailed Description

This module defines SAI Metadata Logger.

Copyright (c) 2014 Microsoft Open Technologies, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions and limitations under the License.

Microsoft would like to thank the following companies for their review and assistance with these files: Intel Corporation, Mellanox Technologies Ltd, Dell Products, L.P., Facebook, Inc., Marvell International Ltd.

Definition in file saimetadatalogger.h.