1// Licensed to the .NET Foundation under one or more agreements.
2// The .NET Foundation licenses this file to you under the MIT license.
3// See the LICENSE file in the project root for more information.
4//*****************************************************************************
5// MDLog.h - Meta data logging helper.
6//
7
8//
9//*****************************************************************************
10#ifndef __MDLog_h__
11#define __MDLog_h__
12
13#if defined(_DEBUG) && !defined(DACCESS_COMPILE)
14#define LOGGING
15#endif
16
17#include <log.h>
18
19#define LOGMD LF_METADATA, LL_INFO10000
20#define LOG_MDCALL(func) LOG((LF_METADATA, LL_INFO10000, "MD: %s\n", #func))
21
22#define MDSTR(str) ((str) ? str : W("<null>"))
23#define MDSTRA(str) ((str) ? str : "<null>")
24
25#endif // __MDLog_h__
26