[NUI] clean debug logs 75/159375/1
authordongsug.song <dongsug.song@samsung.com>
Wed, 8 Nov 2017 09:04:55 +0000 (18:04 +0900)
committerhuiyu,eun <huiyu.eun@samsung.com>
Wed, 8 Nov 2017 10:51:53 +0000 (19:51 +0900)
Change-Id: I5e347693c752389c27a7ce75b09d29603971ddf2
Signed-off-by: dongsug.song <dongsug.song@samsung.com>
src/Tizen.NUI/Tizen.NUI.csproj
src/Tizen.NUI/src/internal/DaliEnumConstants.cs
src/Tizen.NUI/src/internal/Registry.cs
src/Tizen.NUI/src/public/CustomView/Spin.cs
src/Tizen.NUI/src/public/CustomViewRegistry.cs
src/Tizen.NUI/src/public/FocusManager.cs [changed mode: 0644->0755]

index 22cb378..6976f5f 100755 (executable)
@@ -2,7 +2,6 @@
 
   <PropertyGroup>
     <TargetFramework>netstandard2.0</TargetFramework>
-    <DefineConstants>$(DefineConstants);DEBUG_ON</DefineConstants>
   </PropertyGroup>
 
   <ItemGroup>
index f7a2c09..be815da 100755 (executable)
@@ -208,7 +208,7 @@ internal class NUILog
         [CallerFilePath] string file = null
     )
     {
-        Tizen.Log.Fatal("NUI", $"{msg} (at {DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fffffff")} line {lineNum} of {caller} in {file})" );
+        Tizen.Log.Fatal("NUI", $"{msg} (at line {lineNum} of {caller} in {file})" );
     }
 
     public static void Error(string msg,
@@ -217,7 +217,7 @@ internal class NUILog
         [CallerFilePath] string file = null
     )
     {
-        Tizen.Log.Fatal("NUI", $"[ERROR] {msg} (at {DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fffffff")} line {lineNum} of {caller} in {file})" );
+        Tizen.Log.Fatal("NUI", $"[ERROR] {msg} (at line {lineNum} of {caller} in {file})" );
     }
 }
 
index d9e0ee0..cc03ca5 100755 (executable)
@@ -40,7 +40,7 @@ namespace Tizen.NUI
             RefObject refObj = baseHandle.GetObjectPtr();
             IntPtr refCptr = (IntPtr)RefObject.getCPtr(refObj);
 
-            NUILog.Debug("________Storing ref object cptr in control map Hex: {0:X}" + refCptr);
+            NUILog.Debug("Storing ref object cptr in control map Hex: {0:X}" + refCptr);
 
             if (!Instance._controlMap.ContainsKey(refCptr))
             {
index 6d65691..5041dd2 100755 (executable)
@@ -212,7 +212,7 @@ namespace Tizen.NUI
             set
             {
 
-                Tizen.Log.Debug("NUI", "Value set to " + value);
+                NUILog.Debug("Value set to " + value);
                 _currentValue = value;
 
                 // Make sure no invalid value is accepted
@@ -341,7 +341,7 @@ namespace Tizen.NUI
             }
             set
             {
-                Tizen.Log.Debug("NUI", "TextColor set to " + value.R + "," + value.G + "," + value.B);
+                NUILog.Debug("TextColor set to " + value.R + "," + value.G + "," + value.B);
 
                 _textColor = value;
                 _textField.TextColor = _textColor;
index 0161b6c..812c1c5 100755 (executable)
@@ -199,16 +199,14 @@ namespace Tizen.NUI
             Tizen.NUI.PropertyType daliType;
             if (_daliPropertyTypeLookup.TryGetValue(cSharpTypeName, out daliType))
             {
-#if DEBUG_ON
-                Tizen.Log.Debug("NUI", "mapped " + cSharpTypeName + " to dAli type " + daliType);
-#endif
+                NUILog.Debug("mapped " + cSharpTypeName + " to dAli type " + daliType);
+
                 return daliType;
             }
             else
             {
-#if DEBUG_ON
-                Tizen.Log.Debug("NUI", "Failed to find a mapping between C# property" + cSharpTypeName + " and DALi type");
-#endif
+                NUILog.Debug("Failed to find a mapping between C# property" + cSharpTypeName + " and DALi type");
+
                 return PropertyType.None;
             }
         }
@@ -221,9 +219,9 @@ namespace Tizen.NUI
         private static IntPtr CreateControl(IntPtr cPtrControlName)
         {
             string controlName = System.Runtime.InteropServices.Marshal.PtrToStringAnsi(cPtrControlName);
-#if DEBUG_ON
-            Tizen.Log.Debug("NUI", "Create controlled called from C++ create a " + controlName);
-#endif
+
+            NUILog.Debug("Create controlled called from C++ create a " + controlName);
+
             Func<CustomView> controlConstructor;
 
             // find the control constructor
@@ -248,11 +246,10 @@ namespace Tizen.NUI
         private static void SetProperty(IntPtr controlPtr, IntPtr propertyName, IntPtr propertyValue)
         {
             string name = System.Runtime.InteropServices.Marshal.PtrToStringAnsi(propertyName);
-#if DEBUG_ON
-            Tizen.Log.Debug("NUI", "SetControlProperty  called for:" + name);
-#endif
-            Instance.SetPropertyValue(controlPtr, name, propertyValue);
 
+            NUILog.Debug("SetControlProperty  called for:" + name);
+
+            Instance.SetPropertyValue(controlPtr, name, propertyValue);
         }
 
         /// <since_tizen> 3 </since_tizen>
@@ -306,9 +303,8 @@ namespace Tizen.NUI
                         // If the Scriptable attribute exists, then register it with the type registry.
                         if (attr is ScriptableProperty)
                         {
-#if DEBUG_ON
-                            Tizen.Log.Debug("NUI", "Got a DALi JSON scriptable property = " + propertyInfo.Name + ", of type " + propertyInfo.PropertyType.Name);
-#endif
+                            NUILog.Debug("Got a DALi JSON scriptable property = " + propertyInfo.Name + ", of type " + propertyInfo.PropertyType.Name);
+
                             // first get the attribute type, ( default, or animatable)
                             ScriptableProperty scriptableProp = attr as ScriptableProperty;
 
@@ -323,9 +319,7 @@ namespace Tizen.NUI
                             TypeRegistration.RegisterProperty(viewType.ToString(), propertyInfo.Name, propertyIndex, propertyType, _setPropertyCallback, _getPropertyCallback);
                         }
                     }
-#if DEBUG_ON
-                    Tizen.Log.Debug("NUI", "property name = " + propertyInfo.Name);
-#endif
+                    NUILog.Debug("property name = " + propertyInfo.Name);
                 }
             }
         }
@@ -358,9 +352,8 @@ namespace Tizen.NUI
         private void SetPropertyValue(IntPtr refObjectPtr, string propertyName, IntPtr propertyValuePtr)
         {
             // Get the C# control that maps to the C++ control
-#if DEBUG_ON
-            Tizen.Log.Debug("NUI", "SetPropertyValue   refObjectPtr = {0:X}" + refObjectPtr);
-#endif
+            NUILog.Debug("SetPropertyValue   refObjectPtr = {0:X}" + refObjectPtr);
+
             PropertyValue propValue = new PropertyValue(propertyValuePtr, false);
 
             // Get the C# control that maps to the C++ control
old mode 100644 (file)
new mode 100755 (executable)
index 3c84a1b..4c75616
@@ -186,16 +186,8 @@ namespace Tizen.NUI
             {
                 if (_preFocusChangeEventHandler == null)
                 {
-#if DEBUG_ON
-                    Tizen.Log.Debug("NUI", "con1) PreFocusChangeSignal().Empty = " + PreFocusChangeSignal().Empty());
-                    Tizen.Log.Debug("NUI", "con2) PreFocusChangeSignal().GetConnectionCount = " + PreFocusChangeSignal().GetConnectionCount());
-#endif
                     _preFocusChangeCallback = OnPreFocusChange;
                     PreFocusChangeSignal().Connect(_preFocusChangeCallback);
-#if DEBUG_ON
-                    Tizen.Log.Debug("NUI", "con3) PreFocusChangeSignal().Empty = " + PreFocusChangeSignal().Empty());
-                    Tizen.Log.Debug("NUI", "con4) PreFocusChangeSignal().GetConnectionCount = " + PreFocusChangeSignal().GetConnectionCount());
-#endif
                 }
                 _preFocusChangeEventHandler += value;
             }
@@ -204,15 +196,7 @@ namespace Tizen.NUI
                 _preFocusChangeEventHandler -= value;
                 if (_preFocusChangeEventHandler == null && PreFocusChangeSignal().Empty() == false)
                 {
-#if DEBUG_ON
-                    Tizen.Log.Debug("NUI", "discon1) PreFocusChangeSignal().Empty = " + PreFocusChangeSignal().Empty());
-                    Tizen.Log.Debug("NUI", "discon2) PreFocusChangeSignal().GetConnectionCount = " + PreFocusChangeSignal().GetConnectionCount());
-#endif
                     PreFocusChangeSignal().Disconnect(_preFocusChangeCallback);
-#if DEBUG_ON
-                    Tizen.Log.Debug("NUI", "discon3) PreFocusChangeSignal().Empty = " + PreFocusChangeSignal().Empty());
-                    Tizen.Log.Debug("NUI", "discon4) PreFocusChangeSignal().GetConnectionCount = " + PreFocusChangeSignal().GetConnectionCount());
-#endif
                 }
             }
         }