replace Console.WriteLine() with Tizen.Log.Debug()
authordongsug.song <dongsug.song@samsung.com>
Thu, 13 Apr 2017 01:38:48 +0000 (10:38 +0900)
committerdongsug.song <dongsug.song@samsung.com>
Thu, 13 Apr 2017 01:38:48 +0000 (10:38 +0900)
Change-Id: Ic7ebec76c01000ca4eddc463b92f5880ff88bcd0
Signed-off-by: dongsug.song <dongsug.song@samsung.com>
14 files changed:
NUISamples/NUISamples/NUISamples.TizenTV/examples/control-dashboard.cs
NUISamples/NUISamples/NUISamples.TizenTV/examples/dali-test.cs
NUISamples/NUISamples/NUISamples.TizenTV/examples/hello-test.cs
NUISamples/NUISamples/NUISamples.TizenTV/examples/hello-world.cs
NUISamples/NUISamples/NUISamples.TizenTV/examples/image-view.cs
NUISamples/NUISamples/NUISamples.TizenTV/examples/relative-vector.cs
NUISamples/NUISamples/NUISamples.TizenTV/examples/scroll-view.cs
NUISamples/NUISamples/NUISamples.TizenTV/examples/user-alphafunction.cs
src/Tizen.NUI/src/internal/Application.cs
src/Tizen.NUI/src/internal/PropertyRangeManager.cs
src/Tizen.NUI/src/internal/ViewRegistry.cs
src/Tizen.NUI/src/public/CustomView/Spin.cs
src/Tizen.NUI/src/public/NUIApplication.cs
src/Tizen.NUI/src/public/Property.cs

index 1c5c348..da6cace 100755 (executable)
@@ -74,7 +74,7 @@ namespace ControlDashboard
 
         public void Initialize()
         {
-            Console.WriteLine("Customized Application Initialize event handler");
+            Tizen.Log.Debug("NUI", "Customized Application Initialize event handler");
             _stage = Stage.Instance;
             _stage.BackgroundColor = Color.White;
 
@@ -189,7 +189,7 @@ namespace ControlDashboard
                     toggleButton.HeightResizePolicy = ResizePolicyType.FillToParent;
                     toggleButton.Clicked += (obj, e) =>
                     {
-                        Console.WriteLine("Toggle button state changed.");
+                        Tizen.Log.Debug("NUI", "Toggle button state changed.");
                         return true;
                     };
 
@@ -479,7 +479,7 @@ namespace ControlDashboard
         [STAThread]
         static void _Main(string[] args)
         {
-            Console.WriteLine("Hello Mono World");
+            Tizen.Log.Debug("NUI", "Hello Mono World");
 
             Example example = new Example("/home/owner/apps_rw/NUISamples.TizenTV/res/json/control-dashboard-theme.json");
             example.Run(args);
index 2fb9920..910c95c 100755 (executable)
@@ -128,24 +128,24 @@ namespace DaliTest
             int myPropertyIndex = handle.RegisterProperty("myProperty", new PropertyValue(10.0f), PropertyAccessMode.ReadWrite);
             float myProperty = 0.0f;
             handle.GetProperty(myPropertyIndex).Get(ref myProperty);
-            Console.WriteLine( "myProperty value: " + myProperty );
+            Tizen.Log.Debug("NUI",  "myProperty value: " + myProperty );
 
             int myPropertyIndex2 = handle.RegisterProperty("myProperty2", new PropertyValue(new Size(5.0f, 5.0f, 0.0f)), PropertyAccessMode.ReadWrite);
             Size myProperty2 = new Size(0.0f, 0.0f, 0.0f);
             handle.GetProperty(myPropertyIndex2).Get(myProperty2);
-            Console.WriteLine( "myProperty2 value: " + myProperty2.Width + ", " + myProperty2.Height );
+            Tizen.Log.Debug("NUI",  "myProperty2 value: " + myProperty2.Width + ", " + myProperty2.Height );
 
             Actor actor = new Actor();
             actor.Size = new Size(200.0f, 200.0f, 0.0f);
             actor.Name = "MyActor";
             //actor.MixColor = new Color(1.0f, 0.0f, 1.0f, 0.8f);
-            Console.WriteLine("Actor size: " + actor.Size.Width + ", " + actor.Size.Height);
-            Console.WriteLine("Actor name: " + actor.Name);
+            Tizen.Log.Debug("NUI", "Actor size: " + actor.Size.Width + ", " + actor.Size.Height);
+            Tizen.Log.Debug("NUI", "Actor name: " + actor.Name);
 
             Stage stage = Stage.Instance;
             stage.BackgroundColor = Color.White;
             Size stageSize = new Size(stage.Size.Width, stage.Size.Height, 0.0f);
-            Console.WriteLine("Stage size: " + stageSize.Width + ", " + stageSize.Height);
+            Tizen.Log.Debug("NUI", "Stage size: " + stageSize.Width + ", " + stageSize.Height);
             stage.GetDefaultLayer().Add(actor);
 
             TextLabel text = new TextLabel("Hello Mono World");
@@ -154,46 +154,46 @@ namespace DaliTest
             text.HorizontalAlignment = "CENTER";
             stage.GetDefaultLayer().Add(text);
 
-            Console.WriteLine( "Text label text:  " + text.Text );
+            Tizen.Log.Debug("NUI",  "Text label text:  " + text.Text );
 
-            Console.WriteLine( "Text label point size:  " + text.PointSize );
+            Tizen.Log.Debug("NUI",  "Text label point size:  " + text.PointSize );
             text.PointSize = 32.0f;
-            Console.WriteLine( "Text label new point size:  " + text.PointSize );
+            Tizen.Log.Debug("NUI",  "Text label new point size:  " + text.PointSize );
 
             RectanglePaddingClassTest();
 
-            Console.WriteLine( " *************************" );
+            Tizen.Log.Debug("NUI",  " *************************" );
             Size Size = new Size(100, 50, 0);
-            Console.WriteLine( "    Created " + Size );
-            Console.WriteLine( "    Size x =  " + Size.Width + ", y = " + Size.Height );
+            Tizen.Log.Debug("NUI",  "    Created " + Size );
+            Tizen.Log.Debug("NUI",  "    Size x =  " + Size.Width + ", y = " + Size.Height );
             Size += new Size(20, 20, 0);
-            Console.WriteLine( "    Size x =  " + Size.Width + ", y = " + Size.Height );
+            Tizen.Log.Debug("NUI",  "    Size x =  " + Size.Width + ", y = " + Size.Height );
             Size.Width += 10;
             Size.Height += 10;
-            Console.WriteLine( "    Size width =  " + Size.Width + ", height = " + Size.Height );
+            Tizen.Log.Debug("NUI",  "    Size width =  " + Size.Width + ", height = " + Size.Height );
 
-            Console.WriteLine( " *************************" );
+            Tizen.Log.Debug("NUI",  " *************************" );
             Position Position = new Position(20, 100, 50);
-            Console.WriteLine( "    Created " + Position );
-            Console.WriteLine( "    Position x =  " + Position.X + ", y = " + Position.Y + ", z = " + Position.Z );
+            Tizen.Log.Debug("NUI",  "    Created " + Position );
+            Tizen.Log.Debug("NUI",  "    Position x =  " + Position.X + ", y = " + Position.Y + ", z = " + Position.Z );
             Position += new Position(20, 20, 20);
-            Console.WriteLine( "    Position x =  " + Position.X + ", y = " + Position.Y + ", z = " + Position.Z );
+            Tizen.Log.Debug("NUI",  "    Position x =  " + Position.X + ", y = " + Position.Y + ", z = " + Position.Z );
             Position.X += 10;
             Position.Y += 10;
             Position.Z += 10;
-            Console.WriteLine( "    Position width =  " + Position.X + ", height = " + Position.Y + ", depth = " + Position.Z );
+            Tizen.Log.Debug("NUI",  "    Position width =  " + Position.X + ", height = " + Position.Y + ", depth = " + Position.Z );
 
-            Console.WriteLine( " *************************" );
+            Tizen.Log.Debug("NUI",  " *************************" );
             Color color = new Color(20, 100, 50, 200);
-            Console.WriteLine( "    Created " + color );
-            Console.WriteLine( "    Color R =  " + color.R + ", G = " + color.G + ", B = " + color.B + ", A = " + color.A );
+            Tizen.Log.Debug("NUI",  "    Created " + color );
+            Tizen.Log.Debug("NUI",  "    Color R =  " + color.R + ", G = " + color.G + ", B = " + color.B + ", A = " + color.A );
             color += new Color(20, 20, 20, 20);
-            Console.WriteLine( "    Color R =  " + color.R + ", G = " + color.G + ", B = " + color.B + ", A = " + color.A );
+            Tizen.Log.Debug("NUI",  "    Color R =  " + color.R + ", G = " + color.G + ", B = " + color.B + ", A = " + color.A );
             color.R += 10;
             color.G += 10;
             color.B += 10;
             color.A += 10;
-            Console.WriteLine( "    Color r =  " + color.R + ", g = " + color.G + ", b = " + color.B + ", a = " + color.A );
+            Tizen.Log.Debug("NUI",  "    Color r =  " + color.R + ", g = " + color.G + ", b = " + color.B + ", a = " + color.A );
 
             ViewDownCastTest();
         }
@@ -202,52 +202,52 @@ namespace DaliTest
         {
             using (Rectangle r1 = new Rectangle(2, 5, 20, 30))
             {
-                Console.WriteLine( "    Created " + r1 );
-                Console.WriteLine( "    IsEmpty() =  " + r1.IsEmpty() );
-                Console.WriteLine( "    Left =  " + r1.Left() );
-                Console.WriteLine( "    Right =  " + r1.Right() );
-                Console.WriteLine( "    Top  = " + r1.Top() );
-                Console.WriteLine( "    Bottom  = " + r1.Bottom() );
-                Console.WriteLine( "    Area  = " + r1.Area() );
+                Tizen.Log.Debug("NUI",  "    Created " + r1 );
+                Tizen.Log.Debug("NUI",  "    IsEmpty() =  " + r1.IsEmpty() );
+                Tizen.Log.Debug("NUI",  "    Left =  " + r1.Left() );
+                Tizen.Log.Debug("NUI",  "    Right =  " + r1.Right() );
+                Tizen.Log.Debug("NUI",  "    Top  = " + r1.Top() );
+                Tizen.Log.Debug("NUI",  "    Bottom  = " + r1.Bottom() );
+                Tizen.Log.Debug("NUI",  "    Area  = " + r1.Area() );
             }
 
-            Console.WriteLine( " *************************" );
+            Tizen.Log.Debug("NUI",  " *************************" );
 
             using (Rectangle r2 = new Rectangle(2, 5, 20, 30))
             {
-                Console.WriteLine( "    Created " + r2 );
+                Tizen.Log.Debug("NUI",  "    Created " + r2 );
                 r2.Set(1,1,40,40);
-                Console.WriteLine( "    IsEmpty() =  " + r2.IsEmpty() );
-                Console.WriteLine( "    Left =  " + r2.Left() );
-                Console.WriteLine( "    Right =  " + r2.Right() );
-                Console.WriteLine( "    Top  = " + r2.Top() );
-                Console.WriteLine( "    Bottom  = " + r2.Bottom() );
-                Console.WriteLine( "    Area  = " + r2.Area() );
+                Tizen.Log.Debug("NUI",  "    IsEmpty() =  " + r2.IsEmpty() );
+                Tizen.Log.Debug("NUI",  "    Left =  " + r2.Left() );
+                Tizen.Log.Debug("NUI",  "    Right =  " + r2.Right() );
+                Tizen.Log.Debug("NUI",  "    Top  = " + r2.Top() );
+                Tizen.Log.Debug("NUI",  "    Bottom  = " + r2.Bottom() );
+                Tizen.Log.Debug("NUI",  "    Area  = " + r2.Area() );
             }
 
-            Console.WriteLine( " *************************" );
+            Tizen.Log.Debug("NUI",  " *************************" );
 
             Rectangle r3 = new Rectangle(10, 10, 20, 20);
             Rectangle r4 = new Rectangle(10, 10, 20, 20);
 
             if (r3 == r4)
             {
-                Console.WriteLine("r3 == r4");
+                Tizen.Log.Debug("NUI", "r3 == r4");
             }
             else
             {
-                Console.WriteLine("r3 != r4");
+                Tizen.Log.Debug("NUI", "r3 != r4");
             }
 
             r4 = new Rectangle(12, 10, 20, 20);
 
             if (r3 == r4)
             {
-                Console.WriteLine("r3 == r4");
+                Tizen.Log.Debug("NUI", "r3 == r4");
             }
             else
             {
-                Console.WriteLine("r3 != r4");
+                Tizen.Log.Debug("NUI", "r3 != r4");
             }
 
             PaddingType p1 = new PaddingType(10.5f, 10.7f, 20.8f, 20.8f);
@@ -255,22 +255,22 @@ namespace DaliTest
 
             if (p1 == p2)
             {
-                Console.WriteLine("p1 == p2");
+                Tizen.Log.Debug("NUI", "p1 == p2");
             }
             else
             {
-                Console.WriteLine("p1 != p2");
+                Tizen.Log.Debug("NUI", "p1 != p2");
             }
 
             p2 = new PaddingType(12.0f, 10.7f, 20.2f, 20.0f);
 
             if (p1 == p2)
             {
-                Console.WriteLine("p1 == p2");
+                Tizen.Log.Debug("NUI", "p1 == p2");
             }
             else
             {
-                Console.WriteLine("p1 != p2");
+                Tizen.Log.Debug("NUI", "p1 != p2");
             }
         }
 
@@ -297,22 +297,22 @@ namespace DaliTest
             tmpView = view.LeftFocusableView;
             if (string.Compare(tmpView.Name, "leftView") == 0)
             {
-                Console.WriteLine("Passed: LeftFocusedView = " + tmpView.Name);
+                Tizen.Log.Debug("NUI", "Passed: LeftFocusedView = " + tmpView.Name);
             }
             else
             {
-                Console.WriteLine("Failed: LeftFocusedView = " + tmpView.Name);
+                Tizen.Log.Debug("NUI", "Failed: LeftFocusedView = " + tmpView.Name);
             }
 
             view.RightFocusableView = rightView;
             tmpView = view.RightFocusableView;
             if (string.Compare(tmpView.Name, "rightView") == 0)
             {
-                Console.WriteLine("Passed: RightFocusedView = " + tmpView.Name);
+                Tizen.Log.Debug("NUI", "Passed: RightFocusedView = " + tmpView.Name);
             }
             else
             {
-                Console.WriteLine("Failed: RightFocusedView = " + tmpView.Name);
+                Tizen.Log.Debug("NUI", "Failed: RightFocusedView = " + tmpView.Name);
             }
 
             Stage.Instance.GetDefaultLayer().Add(view);
@@ -321,33 +321,33 @@ namespace DaliTest
             tmpView = view.UpFocusableView;
             if (string.Compare(tmpView.Name, "upView") == 0)
             {
-                Console.WriteLine("Passed: UpFocusedView = " + tmpView.Name);
+                Tizen.Log.Debug("NUI", "Passed: UpFocusedView = " + tmpView.Name);
             }
             else
             {
-                Console.WriteLine("Failed: UpFocusedView = " + tmpView.Name);
+                Tizen.Log.Debug("NUI", "Failed: UpFocusedView = " + tmpView.Name);
             }
 
             view.DownFocusableView = downView;
             tmpView = view.DownFocusableView;
             if (string.Compare(tmpView.Name, "downView") == 0)
             {
-                Console.WriteLine("Passed: DownFocusedView = " + tmpView.Name);
+                Tizen.Log.Debug("NUI", "Passed: DownFocusedView = " + tmpView.Name);
             }
             else
             {
-                Console.WriteLine("Failed: DownFocusedView = " + tmpView.Name);
+                Tizen.Log.Debug("NUI", "Failed: DownFocusedView = " + tmpView.Name);
             }
 
             Stage.Instance.GetDefaultLayer().Remove(leftView);
             tmpView = view.LeftFocusableView;
             if (!tmpView)
             {
-                Console.WriteLine("Passed: NULL LeftFocusedView");
+                Tizen.Log.Debug("NUI", "Passed: NULL LeftFocusedView");
             }
             else
             {
-                Console.WriteLine("Failed: LeftFocusedView = " + tmpView.Name);
+                Tizen.Log.Debug("NUI", "Failed: LeftFocusedView = " + tmpView.Name);
             }
         }
 
@@ -361,22 +361,22 @@ namespace DaliTest
             // test the true operator
             if ( actor )
             {
-                Console.WriteLine ("BaseHandle Operator true (actor) : test passed ");
+                Tizen.Log.Debug("NUI", "BaseHandle Operator true (actor) : test passed ");
             }
             else
             {
-                Console.WriteLine ("BaseHandle Operator true (actor): test failed ");
+                Tizen.Log.Debug("NUI", "BaseHandle Operator true (actor): test failed ");
             }
 
             Actor parent = actor.Parent;
 
             if ( parent )
             {
-                Console.WriteLine ("Handle with Empty body  :failed ");
+                Tizen.Log.Debug("NUI", "Handle with Empty body  :failed ");
             }
             else
             {
-                Console.WriteLine ("Valid with Empty body  :passed ");
+                Tizen.Log.Debug("NUI", "Valid with Empty body  :passed ");
             }
 
             actor.Add( differentActor );
@@ -384,142 +384,142 @@ namespace DaliTest
             // here we test two different C# objects, which on the native side have the same body/ ref-object
             if ( actor == differentActor.Parent )
             {
-                Console.WriteLine ("actor == differentActor.GetParent() :passed ");
+                Tizen.Log.Debug("NUI", "actor == differentActor.GetParent() :passed ");
             }
             else
             {
-                Console.WriteLine ("actor == differentActor.GetParent() :failed ");
+                Tizen.Log.Debug("NUI", "actor == differentActor.GetParent() :failed ");
             }
 
             if ( differentActor == differentActor.Parent )
             {
-                Console.WriteLine ("differentActor == differentActor.GetParent() :failed ");
+                Tizen.Log.Debug("NUI", "differentActor == differentActor.GetParent() :failed ");
             }
             else
             {
-                Console.WriteLine ("differentActor == differentActor.GetParent() :passed ");
+                Tizen.Log.Debug("NUI", "differentActor == differentActor.GetParent() :passed ");
             }
 
             if ( nullActor )
             {
-                Console.WriteLine ("BaseHandle Operator true (nullActor) : test failed ");
+                Tizen.Log.Debug("NUI", "BaseHandle Operator true (nullActor) : test failed ");
             }
             else
             {
-                Console.WriteLine ("BaseHandle Operator true (nullActor): test passed ");
+                Tizen.Log.Debug("NUI", "BaseHandle Operator true (nullActor): test passed ");
             }
 
             // ! operator
             if ( !actor )
             {
-                Console.WriteLine ("BaseHandle Operator !(actor) : test failed ");
+                Tizen.Log.Debug("NUI", "BaseHandle Operator !(actor) : test failed ");
             }
             else
             {
-                Console.WriteLine ("BaseHandle Operator !(actor): test passed ");
+                Tizen.Log.Debug("NUI", "BaseHandle Operator !(actor): test passed ");
             }
 
             if ( !nullActor )
             {
-                Console.WriteLine ("BaseHandle Operator !(nullActor) : test passed ");
+                Tizen.Log.Debug("NUI", "BaseHandle Operator !(nullActor) : test passed ");
             }
             else
             {
-                Console.WriteLine ("BaseHandle Operator !(nullActor): test failed ");
+                Tizen.Log.Debug("NUI", "BaseHandle Operator !(nullActor): test failed ");
             }
 
             // Note: operator false only used inside & operator
             // test equality operator ==
             if ( actor == actorSame )
             {
-                Console.WriteLine ("BaseHandle Operator  (actor == actorSame) : test passed");
+                Tizen.Log.Debug("NUI", "BaseHandle Operator  (actor == actorSame) : test passed");
             }
             else
             {
-                Console.WriteLine ("BaseHandle Operator  (actor == actorSame) : test failed");
+                Tizen.Log.Debug("NUI", "BaseHandle Operator  (actor == actorSame) : test failed");
             }
 
             if ( actor == differentActor )
             {
-                Console.WriteLine ("BaseHandle Operator (actor == differentActor) : test failed");
+                Tizen.Log.Debug("NUI", "BaseHandle Operator (actor == differentActor) : test failed");
             }
             else
             {
-                Console.WriteLine ("BaseHandle Operator (actor == differentActor) : test passed");
+                Tizen.Log.Debug("NUI", "BaseHandle Operator (actor == differentActor) : test passed");
             }
 
             if ( actor == nullActor )
             {
-                Console.WriteLine ("BaseHandle Operator (actor == nullActor) : test failed");
+                Tizen.Log.Debug("NUI", "BaseHandle Operator (actor == nullActor) : test failed");
             }
             else
             {
-                Console.WriteLine ("BaseHandle Operator (actor == nullActor) : test passed");
+                Tizen.Log.Debug("NUI", "BaseHandle Operator (actor == nullActor) : test passed");
             }
 
             if ( nullActor == nullActor )
             {
-                Console.WriteLine ("BaseHandle Operator (nullActor == nullActor) : test passed");
+                Tizen.Log.Debug("NUI", "BaseHandle Operator (nullActor == nullActor) : test passed");
             }
             else
             {
-                Console.WriteLine ("BaseHandle Operator (nullActor == nullActor) : test failed");
+                Tizen.Log.Debug("NUI", "BaseHandle Operator (nullActor == nullActor) : test failed");
             }
 
             // test || operator
             if ( actor || actorSame )
             {
-                Console.WriteLine ("BaseHandle Operator (actor || actorSame) : test passed");
+                Tizen.Log.Debug("NUI", "BaseHandle Operator (actor || actorSame) : test passed");
             }
             else
             {
-                Console.WriteLine ("BaseHandle Operator (actor || actorSame) : test failed");
+                Tizen.Log.Debug("NUI", "BaseHandle Operator (actor || actorSame) : test failed");
             }
 
             if ( actor || nullActor )
             {
-                Console.WriteLine ("BaseHandle Operator (actor || nullActor) : test passed");
+                Tizen.Log.Debug("NUI", "BaseHandle Operator (actor || nullActor) : test passed");
             }
             else
             {
-                Console.WriteLine ("BaseHandle Operator (actor || nullActor) : test failed");
+                Tizen.Log.Debug("NUI", "BaseHandle Operator (actor || nullActor) : test failed");
             }
 
             if ( nullActor || nullActor )
             {
-                Console.WriteLine ("BaseHandle Operator (nullActor || nullActor) : test failed");
+                Tizen.Log.Debug("NUI", "BaseHandle Operator (nullActor || nullActor) : test failed");
             }
             else
             {
-                Console.WriteLine ("BaseHandle Operator (nullActor || nullActor) : test passed");
+                Tizen.Log.Debug("NUI", "BaseHandle Operator (nullActor || nullActor) : test passed");
             }
 
             // test && operator
             if ( actor && actorSame )
             {
-                Console.WriteLine ("BaseHandle Operator (actor && actorSame) : test passed");
+                Tizen.Log.Debug("NUI", "BaseHandle Operator (actor && actorSame) : test passed");
             }
             else
             {
-                Console.WriteLine ("BaseHandle Operator (actor && actorSame) : test failed");
+                Tizen.Log.Debug("NUI", "BaseHandle Operator (actor && actorSame) : test failed");
             }
 
             if ( actor && nullActor )
             {
-                Console.WriteLine ("BaseHandle Operator (actor && nullActor) : test failed");
+                Tizen.Log.Debug("NUI", "BaseHandle Operator (actor && nullActor) : test failed");
             }
             else
             {
-                Console.WriteLine ("BaseHandle Operator (actor && nullActor) : test passed");
+                Tizen.Log.Debug("NUI", "BaseHandle Operator (actor && nullActor) : test passed");
             }
 
             if ( nullActor && nullActor )
             {
-                Console.WriteLine ("BaseHandle Operator (nullActor && nullActor) : test failed");
+                Tizen.Log.Debug("NUI", "BaseHandle Operator (nullActor && nullActor) : test failed");
             }
             else
             {
-                Console.WriteLine ("BaseHandle Operator (nullActor && nullActor) : test passed");
+                Tizen.Log.Debug("NUI", "BaseHandle Operator (nullActor && nullActor) : test passed");
             }
         }
 
@@ -539,44 +539,44 @@ namespace DaliTest
             background.Find(ColorVisualProperty.MixColor).Get(backgroundColor);
             if( backgroundColor == Color.Red )
             {
-                Console.WriteLine ("Custom View Background property : test passed");
+                Tizen.Log.Debug("NUI", "Custom View Background property : test passed");
             }
             else
             {
-                Console.WriteLine ("Custom View Background property : test failed");
+                Tizen.Log.Debug("NUI", "Custom View Background property : test failed");
             }
 
             // BackgroundColor property
             spin.BackgroundColor = Color.Yellow;
             if(spin.BackgroundColor == Color.Yellow)
             {
-                Console.WriteLine ("Custom View BackgroundColor property : test passed");
+                Tizen.Log.Debug("NUI", "Custom View BackgroundColor property : test passed");
             }
             else
             {
-                Console.WriteLine ("Custom View BackgroundColor property : test failed");
+                Tizen.Log.Debug("NUI", "Custom View BackgroundColor property : test failed");
             }
 
             // BackgroundImage property
             spin.BackgroundImage = "background-image.jpg";
             if(spin.BackgroundImage == "background-image.jpg")
             {
-                Console.WriteLine ("Custom View BackgroundImage property : test passed");
+                Tizen.Log.Debug("NUI", "Custom View BackgroundImage property : test passed");
             }
             else
             {
-                Console.WriteLine ("Custom View BackgroundImage property : test failed");
+                Tizen.Log.Debug("NUI", "Custom View BackgroundImage property : test failed");
             }
 
             // StyleName property
             spin.StyleName = "MyCustomStyle";
             if(spin.StyleName == "MyCustomStyle")
             {
-                Console.WriteLine ("Custom View StyleName property : test passed");
+                Tizen.Log.Debug("NUI", "Custom View StyleName property : test passed");
             }
             else
             {
-                Console.WriteLine ("Custom View StyleName property : test failed");
+                Tizen.Log.Debug("NUI", "Custom View StyleName property : test failed");
             }
         }
 
@@ -591,7 +591,7 @@ namespace DaliTest
           myLabel.Name = "MyLabelName";
           myLabel.Text = "MyText";
 
-          Console.WriteLine("myLabel.Name = " + myLabel.Name + ", Text = " + myLabel.Text);
+          Tizen.Log.Debug("NUI", "myLabel.Name = " + myLabel.Name + ", Text = " + myLabel.Text);
 
           container.Add(myLabel);
 
@@ -601,11 +601,11 @@ namespace DaliTest
             TextLabel newLabel = View.DownCast<TextLabel>(myLabelActor);
             if(newLabel)
             {
-              Console.WriteLine("Downcast to TextLabel successful: newLabel Name = " + newLabel.Name + ", Text = " + newLabel.Text);
+              Tizen.Log.Debug("NUI", "Downcast to TextLabel successful: newLabel Name = " + newLabel.Name + ", Text = " + newLabel.Text);
             }
             else
             {
-              Console.WriteLine("Downcast to TextLabel failed!");
+              Tizen.Log.Debug("NUI", "Downcast to TextLabel failed!");
             }
           }
 
@@ -615,7 +615,7 @@ namespace DaliTest
           myView.MyOwnName = "MyOwnViewName";
           myView._myCurrentValue = 5;
 
-          Console.WriteLine("myView.Name = " + myView.Name + ", MyOwnName = " + myView.MyOwnName + ", myCurrentValue = " + myView._myCurrentValue);
+          Tizen.Log.Debug("NUI", "myView.Name = " + myView.Name + ", MyOwnName = " + myView.MyOwnName + ", myCurrentValue = " + myView._myCurrentValue);
 
           container.Add(myView);
 
@@ -625,11 +625,11 @@ namespace DaliTest
             MyView newView = View.DownCast<MyView>(myViewActor);
             if(newView)
             {
-              Console.WriteLine("Downcast to MyView successful: newView Name = " + newView.Name + ", MyOwnName = " + newView.MyOwnName + ", myCurrentValue = " + newView._myCurrentValue);
+              Tizen.Log.Debug("NUI", "Downcast to MyView successful: newView Name = " + newView.Name + ", MyOwnName = " + newView.MyOwnName + ", myCurrentValue = " + newView._myCurrentValue);
             }
             else
             {
-              Console.WriteLine("Downcast to MyView failed!");
+              Tizen.Log.Debug("NUI", "Downcast to MyView failed!");
             }
           }
 
@@ -640,7 +640,7 @@ namespace DaliTest
           myButton.LabelText = "MyLabelText";
           myButton._myCurrentValue = 5;
 
-          Console.WriteLine("myButton.Name = " + myButton.Name + ", MyOwnName = " + myButton.MyOwnName + ", LabelText = " + myButton.LabelText + ", myCurrentValue = " + myButton._myCurrentValue);
+          Tizen.Log.Debug("NUI", "myButton.Name = " + myButton.Name + ", MyOwnName = " + myButton.MyOwnName + ", LabelText = " + myButton.LabelText + ", myCurrentValue = " + myButton._myCurrentValue);
 
           container.Add(myButton);
 
@@ -650,11 +650,11 @@ namespace DaliTest
             MyButton newButton = View.DownCast<MyButton>(myButtonActor);
             if(newButton)
             {
-              Console.WriteLine("Downcast to MyButton successful: newButton Name = " + newButton.Name + ", MyOwnName = " + newButton.MyOwnName + ", LabelText = " + myButton.LabelText + ", myCurrentValue = " + newButton._myCurrentValue);
+              Tizen.Log.Debug("NUI", "Downcast to MyButton successful: newButton Name = " + newButton.Name + ", MyOwnName = " + newButton.MyOwnName + ", LabelText = " + myButton.LabelText + ", myCurrentValue = " + newButton._myCurrentValue);
             }
             else
             {
-              Console.WriteLine("Downcast to MyButton failed!");
+              Tizen.Log.Debug("NUI", "Downcast to MyButton failed!");
             }
           }
 
@@ -663,7 +663,7 @@ namespace DaliTest
           spin.Name = "SpinName";
           spin.MaxValue = 8888;
 
-          Console.WriteLine("spin.Name = " + spin.Name + ", MaxValue = " + spin.MaxValue);
+          Tizen.Log.Debug("NUI", "spin.Name = " + spin.Name + ", MaxValue = " + spin.MaxValue);
 
           container.Add(spin);
 
@@ -673,11 +673,11 @@ namespace DaliTest
             Spin newSpin = View.DownCast<Spin>(spinActor);
             if(newSpin)
             {
-              Console.WriteLine("Downcast to Spin successful: newSpin Name = " + newSpin.Name + ", MaxValue = " + newSpin.MaxValue);
+              Tizen.Log.Debug("NUI", "Downcast to Spin successful: newSpin Name = " + newSpin.Name + ", MaxValue = " + newSpin.MaxValue);
             }
             else
             {
-              Console.WriteLine("Downcast to Spin failed!");
+              Tizen.Log.Debug("NUI", "Downcast to Spin failed!");
             }
           }
 
@@ -688,7 +688,7 @@ namespace DaliTest
           mySpin.MaxValue = 8888;
           mySpin._myCurrentValue = 5;
 
-          Console.WriteLine("mySpin.Name = " + mySpin.Name + ", MyOwnName = " + mySpin.MyOwnName + ", MaxValue = " + mySpin.MaxValue + ", currentValue = " + mySpin._myCurrentValue);
+          Tizen.Log.Debug("NUI", "mySpin.Name = " + mySpin.Name + ", MyOwnName = " + mySpin.MyOwnName + ", MaxValue = " + mySpin.MaxValue + ", currentValue = " + mySpin._myCurrentValue);
 
           container.Add(mySpin);
 
@@ -698,11 +698,11 @@ namespace DaliTest
             MySpin newSpin = View.DownCast<MySpin>(mySpinActor);
             if(newSpin)
             {
-              Console.WriteLine("Downcast to MySpin successful: newSpin Name = " + newSpin.Name + ", MyOwnName = " + newSpin.MyOwnName + ", MaxValue = " + newSpin.MaxValue + ", currentValue = " + newSpin._myCurrentValue);
+              Tizen.Log.Debug("NUI", "Downcast to MySpin successful: newSpin Name = " + newSpin.Name + ", MyOwnName = " + newSpin.MyOwnName + ", MaxValue = " + newSpin.MaxValue + ", currentValue = " + newSpin._myCurrentValue);
             }
             else
             {
-              Console.WriteLine("Downcast to MySpin failed!");
+              Tizen.Log.Debug("NUI", "Downcast to MySpin failed!");
             }
           }
         }
@@ -755,7 +755,7 @@ namespace DaliTest
         [STAThread]
         static void _Main(string[] args)
         {
-            Console.WriteLine ("Hello Mono World");
+            Tizen.Log.Debug("NUI", "Hello Mono World");
 
             Example example = new Example();
             example.Run(args);
index 3664442..e433cf7 100755 (executable)
@@ -74,8 +74,8 @@ namespace HelloTest
         {
             if (_animation)
             {
-                Console.WriteLine("Duration= " + _animation.Duration);
-                Console.WriteLine("EndAction= " + _animation.EndAction);
+                Tizen.Log.Debug("NUI", "Duration= " + _animation.Duration);
+                Tizen.Log.Debug("NUI", "EndAction= " + _animation.EndAction);
             }
         }
 
@@ -112,7 +112,7 @@ namespace HelloTest
         [STAThread]
         static void _Main(string[] args)
         {
-            Console.WriteLine("Hello mono world.");
+            Tizen.Log.Debug("NUI", "Hello mono world.");
             //Example example = new Example();
             //Example example = new Example("stylesheet");
             Example example = new Example("stylesheet", WindowMode.Transparent);
index e907b24..f68a7fe 100755 (executable)
@@ -141,7 +141,7 @@ namespace HelloWorldTest
         [STAThread]
         static void _Main(string[] args)
         {
-            //Console.WriteLine("Main() called!");
+            //Tizen.Log.Debug("NUI", "Main() called!");
             Example example = new Example();
             example.Run(args);
         }
index b68aedd..1da826d 100755 (executable)
@@ -28,7 +28,7 @@ namespace ImageViewTest
         private const string resources = "/home/owner/apps_rw/NUISamples.TizenTV/res";
         public static void Log(string str)
         {
-            Console.WriteLine("[DALI C# SAMPLE] " + str);
+            Tizen.Log.Debug("NUI", "[DALI C# SAMPLE] " + str);
         }
 
         private Animation _animation;
index 35d8d87..dd495d2 100755 (executable)
@@ -98,7 +98,7 @@ namespace RelativeVectorTest
         [STAThread]
         static void _Main(string[] args)
         {
-            Console.WriteLine("Hello mono world.");
+            Tizen.Log.Debug("NUI", "Hello mono world.");
             Example example = new Example("stylesheet", WindowMode.Transparent);
             example.Run(args);
         }
index 4fc206b..3e94964 100755 (executable)
@@ -150,27 +150,27 @@ namespace ScrollViewTest
     // Callback for _animation finished signal handling
     public void AnimationFinished(object sender, EventArgs e)
     {
-      Console.WriteLine("Customized Animation Finished Event handler");
+      Tizen.Log.Debug("NUI", "Customized Animation Finished Event handler");
     }
     private void OnKey(object source, EventArgs e)
     {
-      Console.WriteLine("View Keyevent EVENT callback....");
+      Tizen.Log.Debug("NUI", "View Keyevent EVENT callback....");
     }
 
     private bool Onwheel(object source, View.WheelEventArgs e)
     {
-      Console.WriteLine("View Wheel EVENT callback....");
+      Tizen.Log.Debug("NUI", "View Wheel EVENT callback....");
       return true;
     }
 
     private bool OnTouch(object source, View.TouchEventArgs e)
     {
-      Console.WriteLine("View TOUCH EVENT callback....");
+      Tizen.Log.Debug("NUI", "View TOUCH EVENT callback....");
 
       // Only animate the _text label when touch down happens
       if( e.Touch.GetState(0) == PointStateType.Down )
       {
-        Console.WriteLine("Customized Stage Touch event handler");
+        Tizen.Log.Debug("NUI", "Customized Stage Touch event handler");
         // Create a new _animation
         if( _animation )
         {
@@ -193,7 +193,7 @@ namespace ScrollViewTest
 
     private void OnScrollViewRelayout(object source, EventArgs e)
     {
-      Console.WriteLine("View OnRelayoutEventArgs EVENT callback....");
+      Tizen.Log.Debug("NUI", "View OnRelayoutEventArgs EVENT callback....");
 
       // Set the correct scroll bar size after size negotiation of scroll view is done
       _scrollBar.Size = new Size(0.0f, _scrollView.GetRelayoutSize(DimensionType.Width), 0.0f);
index 261e6cc..f652a07 100755 (executable)
@@ -32,7 +32,7 @@ namespace UserAlphaFunctionTest
 
         public static void Log(string str)
         {
-            Console.WriteLine("[DALI C# SAMPLE] " + str);
+            Tizen.Log.Debug("NUI", "[DALI C# SAMPLE] " + str);
         }
 
         public Example() : base()
index 5952e6a..259cbdd 100755 (executable)
@@ -1052,10 +1052,10 @@ namespace Tizen.NUI
         internal void SetupDelegates()
         {
             InitDelegateInternal initializeCallback = new InitDelegateInternal(Initialize);
-            System.Console.WriteLine("InitSignal connection count");
+            Tizen.Log.Debug("NUI", "InitSignal connection count");
 
             this.InitSignal().Connect(initializeCallback);
-            //Console.WriteLine( "InitSignal connection count = " + app.InitSignal().GetConnectionCount() );
+            //Tizen.Log.Debug("NUI",  "InitSignal connection count = " + app.InitSignal().GetConnectionCount() );
         }
 
         public static Application NewApplication()
index e4fcf4a..c342605 100755 (executable)
@@ -103,7 +103,7 @@ namespace Tizen.NUI
                 startEventPropertyIndex += (int)Tizen.NUI.PropertyRanges.DEFAULT_PROPERTY_MAX_COUNT_PER_DERIVATION; // DALi uses 10,000
                 startAnimatablePropertyIndex += maxCountPerDerivation;
 
-                //Console.WriteLine ("getStartPropertyIndex =  " + viewType.Name +"current index " + startEventPropertyIndex);
+                //Tizen.Log.Debug("NUI", "getStartPropertyIndex =  " + viewType.Name +"current index " + startEventPropertyIndex);
 #if (DOT_NET_CORE)
                 viewType = viewType.GetTypeInfo().BaseType;
 #else
index a1bf0cd..94a6c43 100755 (executable)
@@ -194,12 +194,12 @@ namespace Tizen.NUI
             Tizen.NUI.PropertyType daliType;
             if (_daliPropertyTypeLookup.TryGetValue(cSharpTypeName, out daliType))
             {
-                //Console.WriteLine("mapped "+ cSharpTypeName + " to dAli type " +daliType );
+                //Tizen.Log.Debug("NUI", "mapped "+ cSharpTypeName + " to dAli type " +daliType );
                 return daliType;
             }
             else
             {
-                // Console.WriteLine("Failed to find a mapping between C# property" + cSharpTypeName +" and DALi type");
+                // Tizen.Log.Debug("NUI", "Failed to find a mapping between C# property" + cSharpTypeName +" and DALi type");
                 return PropertyType.None;
             }
         }
@@ -212,7 +212,7 @@ namespace Tizen.NUI
         private static IntPtr CreateControl(IntPtr cPtrControlName)
         {
             string controlName = System.Runtime.InteropServices.Marshal.PtrToStringAnsi(cPtrControlName);
-            // Console.WriteLine ("Create controlled called from C++ create a " + controlName);
+            // Tizen.Log.Debug("NUI", "Create controlled called from C++ create a " + controlName);
 
             Func<CustomView> controlConstructor;
 
@@ -240,7 +240,7 @@ namespace Tizen.NUI
             RefObject refObj = view.GetObjectPtr();
             IntPtr refCptr = (IntPtr)RefObject.getCPtr(refObj);
 
-            //Console.WriteLine ("________Storing ref object cptr in control map Hex: {0:X}", refCptr);
+            //Tizen.Log.Debug("NUI", "________Storing ref object cptr in control map Hex: {0:X}", refCptr);
             if (!Instance._controlMap.ContainsKey(refCptr))
             {
                 Instance._controlMap.Add(refCptr, new WeakReference(view, false));
@@ -275,7 +275,7 @@ namespace Tizen.NUI
         private static void SetProperty(IntPtr controlPtr, IntPtr propertyName, IntPtr propertyValue)
         {
             string name = System.Runtime.InteropServices.Marshal.PtrToStringAnsi(propertyName);
-            //Console.WriteLine ( SetControlProperty  called for:" + name );
+            //Tizen.Log.Debug("NUI",  SetControlProperty  called for:" + name );
             Instance.SetPropertyValue(controlPtr, name, propertyValue);
 
         }
@@ -355,7 +355,7 @@ namespace Tizen.NUI
                         // If the Scriptable attribute exists, then register it with the type registry.
                         if (attr is ScriptableProperty)
                         {
-                            //Console.WriteLine ("Got a DALi JSON scriptable property = " + propertyInfo.Name +", of type " + propertyInfo.PropertyType.Name);
+                            //Tizen.Log.Debug("NUI", "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;
@@ -371,7 +371,7 @@ namespace Tizen.NUI
                             TypeRegistration.RegisterProperty(viewType.Name, propertyInfo.Name, propertyIndex, propertyType, _setPropertyCallback, _getPropertyCallback);
                         }
                     }
-                    // Console.WriteLine ("property name = " + propertyInfo.Name);
+                    // Tizen.Log.Debug("NUI", "property name = " + propertyInfo.Name);
                 }
             }
         }
@@ -415,7 +415,7 @@ namespace Tizen.NUI
         {
             // Get the C# control that maps to the C++ control
 
-            //Console.WriteLine ("SetPropertyValue   refObjectPtr = {0:X}", controlPtr);
+            //Tizen.Log.Debug("NUI", "SetPropertyValue   refObjectPtr = {0:X}", controlPtr);
 
             PropertyValue propValue = new PropertyValue(propertyValuePtr, false);
 
index 4fe2bcd..df4a483 100755 (executable)
@@ -203,7 +203,7 @@ namespace Tizen.NUI
             set
             {
 
-                Console.WriteLine("Value set to " + value);
+                Tizen.Log.Debug("NUI", "Value set to " + value);
                 _currentValue = value;
 
                 // Make sure no invalid value is accepted
@@ -320,7 +320,7 @@ namespace Tizen.NUI
             }
             set
             {
-                Console.WriteLine("TextColor set to " + value.R + "," + value.G + "," + value.B);
+                Tizen.Log.Debug("NUI", "TextColor set to " + value.R + "," + value.G + "," + value.B);
 
                 _textColor = value;
                 _textField.TextColor = _textColor;
index e2e80a8..58ec099 100755 (executable)
@@ -30,7 +30,7 @@ namespace Tizen.NUI
         private void LOG(string _str)
         {
             //Tizen.Log.Debug("NUI", _str);
-            //Console.WriteLine("[NUI]" + _str);
+            //Tizen.Log.Debug("NUI", "[NUI]" + _str);
         }
 
         /// <summary>
index 55b0689..af5873c 100755 (executable)
@@ -963,88 +963,88 @@ namespace Tizen.NUI
 
             if (type.Equals(typeof(int)))
             {
-                System.Console.WriteLine(" got an int property value ");
+                Tizen.Log.Debug("NUI", " got an int property value ");
                 value = new PropertyValue((int)obj);
             }
             if (type.Equals(typeof(System.Int32)))
             {
-                System.Console.WriteLine(" got an int property value ");
+                Tizen.Log.Debug("NUI", " got an int property value ");
                 value = new PropertyValue((int)obj);
             }
             else if (type.Equals(typeof(bool)))
             {
-                System.Console.WriteLine(" got an bool property value ");
+                Tizen.Log.Debug("NUI", " got an bool property value ");
                 value = new PropertyValue((bool)obj);
             }
             else if (type.Equals(typeof(float)))
             {
-                System.Console.WriteLine(" got an float property value ");
+                Tizen.Log.Debug("NUI", " got an float property value ");
                 value = new PropertyValue((float)obj);
             }
             else if (type.Equals(typeof(string)))
             {
-                System.Console.WriteLine(" got a string property value ");
+                Tizen.Log.Debug("NUI", " got a string property value ");
                 value = new PropertyValue((string)obj);
             }
             else if (type.Equals(typeof(Vector2)))
             {
-                System.Console.WriteLine(" got an Vector2 property value ");
+                Tizen.Log.Debug("NUI", " got an Vector2 property value ");
                 value = new PropertyValue((Vector2)obj);
             }
             else if (type.Equals(typeof(Vector3)))
             {
-                System.Console.WriteLine(" got an Vector3 property value ");
+                Tizen.Log.Debug("NUI", " got an Vector3 property value ");
                 value = new PropertyValue((Vector3)obj);
             }
             else if (type.Equals(typeof(Vector4)))
             {
-                System.Console.WriteLine(" got an Vector4 property value ");
+                Tizen.Log.Debug("NUI", " got an Vector4 property value ");
 
                 value = new PropertyValue((Vector4)obj);
             }
             else if (type.Equals(typeof(Position)))
             {
-                System.Console.WriteLine(" got an Position property value ");
+                Tizen.Log.Debug("NUI", " got an Position property value ");
                 value = new PropertyValue((Position)obj);
             }
             else if (type.Equals(typeof(Position2D)))
             {
-                System.Console.WriteLine(" got an Position2D property value ");
+                Tizen.Log.Debug("NUI", " got an Position2D property value ");
                 value = new PropertyValue((Position2D)obj);
             }
             else if (type.Equals(typeof(Size)))
             {
-                System.Console.WriteLine(" got an Size property value ");
+                Tizen.Log.Debug("NUI", " got an Size property value ");
                 value = new PropertyValue((Size)obj);
             }
             else if (type.Equals(typeof(Size2D)))
             {
-                System.Console.WriteLine(" got an Size2D property value ");
+                Tizen.Log.Debug("NUI", " got an Size2D property value ");
                 value = new PropertyValue((Size2D)obj);
             }
             else if (type.Equals(typeof(Color)))
             {
-                System.Console.WriteLine(" got an Color property value ");
+                Tizen.Log.Debug("NUI", " got an Color property value ");
                 value = new PropertyValue((Color)obj);
             }
             else if (type.Equals(typeof(Rotation)))
             {
-                System.Console.WriteLine(" got an Rotation property value ");
+                Tizen.Log.Debug("NUI", " got an Rotation property value ");
                 value = new PropertyValue((Rotation)obj);
             }
             else if (type.Equals(typeof(RelativeVector2)))
             {
-                System.Console.WriteLine(" got an RelativeVector2 property value ");
+                Tizen.Log.Debug("NUI", " got an RelativeVector2 property value ");
                 value = new PropertyValue((RelativeVector2)obj);
             }
             else if (type.Equals(typeof(RelativeVector3)))
             {
-                System.Console.WriteLine(" got an RelativeVector3 property value ");
+                Tizen.Log.Debug("NUI", " got an RelativeVector3 property value ");
                 value = new PropertyValue((RelativeVector3)obj);
             }
             else if (type.Equals(typeof(RelativeVector4)))
             {
-                System.Console.WriteLine(" got an RelativeVector4 property value ");
+                Tizen.Log.Debug("NUI", " got an RelativeVector4 property value ");
                 value = new PropertyValue((RelativeVector4)obj);
             }
             else