summaryrefslogtreecommitdiff
path: root/src/md/inc/mdlog.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/md/inc/mdlog.h')
-rw-r--r--src/md/inc/mdlog.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/md/inc/mdlog.h b/src/md/inc/mdlog.h
new file mode 100644
index 0000000000..7eb792f9cc
--- /dev/null
+++ b/src/md/inc/mdlog.h
@@ -0,0 +1,25 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+//*****************************************************************************
+// MDLog.h - Meta data logging helper.
+//
+
+//
+//*****************************************************************************
+#ifndef __MDLog_h__
+#define __MDLog_h__
+
+#if defined(_DEBUG) && !defined(DACCESS_COMPILE)
+#define LOGGING
+#endif
+
+#include <log.h>
+
+#define LOGMD LF_METADATA, LL_INFO10000
+#define LOG_MDCALL(func) LOG((LF_METADATA, LL_INFO10000, "MD: %s\n", #func))
+
+#define MDSTR(str) ((str) ? str : W("<null>"))
+#define MDSTRA(str) ((str) ? str : "<null>")
+
+#endif // __MDLog_h__