Remove LogTraceListener class
authorWonYoung Choi <wy80.choi@samsung.com>
Wed, 27 Jul 2016 06:16:58 +0000 (15:16 +0900)
committerWonYoung Choi <wy80.choi@samsung.com>
Wed, 27 Jul 2016 06:16:58 +0000 (15:16 +0900)
TraceListener is not supported in DotNETCore.App scope.

Change-Id: I669678c513e2f390b615fc6e24c1fa22e0bfb54a

src/Tizen/Tizen.csproj [changed mode: 0755->0644]
src/Tizen/Tizen/LogTraceListener.cs [deleted file]

old mode 100755 (executable)
new mode 100644 (file)
index 2aa011f..2b02317
@@ -53,7 +53,6 @@
     <Compile Include="Interop\Interop.Dlog.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
     <Compile Include="Tizen\Log.cs" />
-    <Compile Include="Tizen\LogTraceListener.cs" />
   </ItemGroup>
   <ItemGroup>
     <None Include="Tizen.snk" />
diff --git a/src/Tizen/Tizen/LogTraceListener.cs b/src/Tizen/Tizen/LogTraceListener.cs
deleted file mode 100755 (executable)
index 126734d..0000000
+++ /dev/null
@@ -1,106 +0,0 @@
-// Copyright 2016 by Samsung Electronics, Inc.,
-//
-// This software is the confidential and proprietary information
-// of Samsung Electronics, Inc. ("Confidential Information"). You
-// shall not disclose such Confidential Information and shall use
-// it only in accordance with the terms of the license agreement
-// you entered into with Samsung.
-
-using System;
-using System.Text;
-using System.Diagnostics;
-
-namespace Tizen
-{
-    /// <summary>
-    /// Directs tracing or debugging output to Tizen logging system.
-    /// </summary>
-    public class LogTraceListener : TraceListener
-    {
-        private string _tagName = null;
-        private readonly StringBuilder _buf = new StringBuilder();
-
-        /// <summary>
-        /// Initializes a new instance of the LogTraceListener class, using the specfied tag name of the logging system.
-        /// </summary>
-        /// <param name="tag">The tag name of the log message.</param>
-        public LogTraceListener(string tag) : base("DLOG")
-        {
-            _tagName = tag;
-        }
-
-        /// <summary>
-        /// The tag name of the log message.
-        /// </summary>
-        public string Tag
-        {
-            get { return _tagName; }
-            set { _tagName = value; }
-        }
-
-        private void WriteImpl(string message)
-        {
-            if (NeedIndent)
-            {
-                WriteIndent();
-            }
-            _buf.Append(message);
-        }
-
-        /// <summary>
-        /// Writes an error message to the logging system.
-        /// </summary>
-        /// <param name="message">The error message to print.</param>
-        public override void Fail(string message)
-        {
-            Fail(message, null);
-        }
-
-        /// <summary>
-        /// Writes an error message and a detailed error message to the logging system.
-        /// </summary>
-        /// <param name="message">The error message to print.</param>
-        /// <param name="detailMessage">The detailed error message to print.</param>
-        public override void Fail(string message, string detailMessage)
-        {
-            StringBuilder failBuf = new StringBuilder();
-            failBuf.Append("Fail: ");
-            failBuf.Append(message);
-            if (!String.IsNullOrEmpty(detailMessage))
-            {
-                failBuf.Append(" ");
-                failBuf.Append(detailMessage);
-            }
-            Log.Error(_tagName, failBuf.ToString(), null);
-        }
-
-        /// <summary>
-        /// Writes a log message to the logging system.
-        /// </summary>
-        /// <param name="message">The log message to print.</param>
-        public override void Write(string message)
-        {
-            WriteImpl(message);
-        }
-
-        /// <summary>
-        /// Writes a log message followed by the current line terminator to the logging system.
-        /// </summary>
-        /// <param name="message">The log message to print.</param>
-        public override void WriteLine(string message)
-        {
-            WriteImpl(message + Environment.NewLine);
-            NeedIndent = true;
-            Flush();
-        }
-
-        /// <summary>
-        /// Causes buffered data to be written to the logging system.
-        /// </summary>
-        public override void Flush()
-        {
-            Log.Debug(_tagName, _buf.ToString(), null);
-            _buf.Clear();
-        }
-    }
-}