summaryrefslogtreecommitdiff
path: root/src/binder/inc/bindinglog.inl
diff options
context:
space:
mode:
Diffstat (limited to 'src/binder/inc/bindinglog.inl')
-rw-r--r--src/binder/inc/bindinglog.inl46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/binder/inc/bindinglog.inl b/src/binder/inc/bindinglog.inl
new file mode 100644
index 0000000000..f342f618ea
--- /dev/null
+++ b/src/binder/inc/bindinglog.inl
@@ -0,0 +1,46 @@
+// 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.
+// ============================================================
+//
+// BindingLog.inl
+//
+
+
+//
+// Implements inlined methods of BindingLog
+//
+// ============================================================
+
+#ifndef __BINDER__BINDING_LOG_INL__
+#define __BINDER__BINDING_LOG_INL__
+
+BOOL BindingLog::CanLog()
+{
+ return (m_pCDebugLog != NULL);
+}
+
+CDebugLog *BindingLog::GetDebugLog()
+{
+ _ASSERTE(m_pCDebugLog != NULL);
+ return m_pCDebugLog;
+}
+
+HRESULT BindingLog::Log(LPCWSTR pwzInfo)
+{
+ PathString info(pwzInfo);
+ return BindingLog::Log(info);
+}
+
+HRESULT BindingLog::Log(LPCWSTR pwzPrefix,
+ SString &info)
+{
+ PathString message;
+
+ message.Append(pwzPrefix);
+ message.Append(info);
+
+ return Log(message);
+}
+
+#endif