From: dongsug.song Date: Tue, 28 Sep 2021 03:06:54 +0000 (+0900) Subject: [NUI] Fix testhub errors by removing useless debugging logs X-Git-Tag: accepted/tizen/unified/20231205.024657~1406 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0eeb1f6ce404d181e621d800f6376a04943b3149;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Fix testhub errors by removing useless debugging logs --- diff --git a/src/Tizen.NUI/src/internal/Common/DaliEnumConstants.cs b/src/Tizen.NUI/src/internal/Common/DaliEnumConstants.cs index da4a48f..3790af3 100755 --- a/src/Tizen.NUI/src/internal/Common/DaliEnumConstants.cs +++ b/src/Tizen.NUI/src/internal/Common/DaliEnumConstants.cs @@ -240,12 +240,4 @@ namespace Tizen.NUI } } -#if !(NUI_DEBUG_ON) - internal class tlog - { - internal static void Fatal(string tag, string msg) { _ = tag; _ = msg; } - internal static void Error(string tag, string msg) { _ = tag; _ = msg; } - } -#endif - } diff --git a/src/Tizen.NUI/src/public/Accessibility/Accessibility.cs b/src/Tizen.NUI/src/public/Accessibility/Accessibility.cs index af5d0de..7f3dd5b 100755 --- a/src/Tizen.NUI/src/public/Accessibility/Accessibility.cs +++ b/src/Tizen.NUI/src/public/Accessibility/Accessibility.cs @@ -20,9 +20,6 @@ using System.ComponentModel; using System.Runtime.InteropServices; using Tizen.NUI.BaseComponents; using System.Diagnostics.CodeAnalysis; -#if (NUI_DEBUG_ON) -using tlog = Tizen.Log; -#endif namespace Tizen.NUI.Accessibility { @@ -325,7 +322,7 @@ namespace Tizen.NUI.Accessibility private void SayFinishedEventCallback(int result) { - tlog.Fatal(tag, $"sayFinishedEventCallback(res={result}) called!"); + NUILog.Debug($"sayFinishedEventCallback(res={result}) called!"); sayFinishedEventHandler?.Invoke(this, new SayFinishedEventArgs(result)); } @@ -356,7 +353,7 @@ namespace Tizen.NUI.Accessibility internal SayFinishedEventArgs(int result) { State = (Accessibility.SayFinishedState)(result); - tlog.Fatal("NUITEST", $"SayFinishedEventArgs Constructor! State={State}"); + NUILog.Debug($"SayFinishedEventArgs Constructor! State={State}"); } } } diff --git a/src/Tizen.NUI/src/public/BaseComponents/AnimatedImageView.cs b/src/Tizen.NUI/src/public/BaseComponents/AnimatedImageView.cs index 9cf3787..27b1caa 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/AnimatedImageView.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/AnimatedImageView.cs @@ -18,10 +18,6 @@ using System.Collections.Generic; using System.ComponentModel; -#if (NUI_DEBUG_ON) -using tlog = Tizen.Log; -#endif - namespace Tizen.NUI.BaseComponents { /// diff --git a/src/Tizen.NUI/src/public/BaseComponents/AnimatedVectorImageView.cs b/src/Tizen.NUI/src/public/BaseComponents/AnimatedVectorImageView.cs index 0abf21f..a5dd7e0 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/AnimatedVectorImageView.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/AnimatedVectorImageView.cs @@ -20,10 +20,6 @@ using System.ComponentModel; namespace Tizen.NUI.BaseComponents { -#if (NUI_DEBUG_ON) - using tlog = Tizen.Log; -#endif - /// /// AnimatedVectorImageView is a class for displaying a vector resource. /// @@ -37,7 +33,7 @@ namespace Tizen.NUI.BaseComponents [EditorBrowsable(EditorBrowsableState.Never)] public AnimatedVectorImageView() : base() { - tlog.Fatal(tag, $"[AnimatedVectorImageView START[ constructor objId={GetId()} ] END]"); + NUILog.Debug($"[AnimatedVectorImageView START[ constructor objId={GetId()} ] END]"); } /// @@ -47,7 +43,7 @@ namespace Tizen.NUI.BaseComponents [EditorBrowsable(EditorBrowsableState.Never)] public AnimatedVectorImageView(float scale) : base(scale) { - tlog.Fatal(tag, $"[AnimatedVectorImageView START[ constructor scale={scale}) objId={GetId()} ] END]"); + NUILog.Debug($"[AnimatedVectorImageView START[ constructor scale={scale}) objId={GetId()} ] END]"); } /// @@ -61,7 +57,7 @@ namespace Tizen.NUI.BaseComponents { return; } - tlog.Fatal(tag, $"[AnimatedVectorImageView START[ [{GetId()}] type={type})"); + NUILog.Debug($"AnimatedVectorImageView START"); //Release your own unmanaged resources here. //You should not access any managed member here except static instance. @@ -69,7 +65,7 @@ namespace Tizen.NUI.BaseComponents base.Dispose(type); - tlog.Fatal(tag, $"]AnimatedVectorImageView END]"); + NUILog.Debug($"AnimatedVectorImageView END"); } #endregion Constructor, Destructor, Dispose @@ -84,18 +80,18 @@ namespace Tizen.NUI.BaseComponents { set { - tlog.Fatal(tag, $"[AnimatedVectorImageView START[ [{GetId()}] ResourceURL SET"); + NUILog.Debug($"[AnimatedVectorImageView START[ [{GetId()}] ResourceURL SET"); if (value == resourceUrl) { - tlog.Fatal(tag, $"set same URL! "); + NUILog.Debug($"set same URL! "); return; } resourceUrl = (value == null) ? "" : value; URL = resourceUrl; isMinMaxFrameSet = minMaxSetTypes.NotSetByUser; totalFrameNum = base.TotalFrame; - tlog.Fatal(tag, $" [{GetId()}] resourceUrl={resourceUrl}) ]AnimatedVectorImageView END]"); + NUILog.Debug($" [{GetId()}] resourceUrl={resourceUrl}) ]AnimatedVectorImageView END]"); } get => resourceUrl; } @@ -109,13 +105,13 @@ namespace Tizen.NUI.BaseComponents { set { - tlog.Fatal(tag, $"[AnimatedVectorImageView START[ [{GetId()}] ResourceUrl SET"); + NUILog.Debug($"[AnimatedVectorImageView START[ [{GetId()}] ResourceUrl SET"); this.ResourceURL = value; - tlog.Fatal(tag, $" [{GetId()}] value={value}) ]AnimatedVectorImageView END]"); + NUILog.Debug($" [{GetId()}] value={value}) ]AnimatedVectorImageView END]"); } get { - tlog.Fatal(tag, $"[AnimatedVectorImageView [ [{GetId()}] ResourceUrl GET"); + NUILog.Debug($"[AnimatedVectorImageView [ [{GetId()}] ResourceUrl GET"); return this.ResourceURL; } } @@ -133,12 +129,12 @@ namespace Tizen.NUI.BaseComponents { set { - tlog.Fatal(tag, $"[AnimatedVectorImageView START[ [{GetId()}] RepeatCount SET"); + NUILog.Debug($"[AnimatedVectorImageView START[ [{GetId()}] RepeatCount SET"); repeatCnt = (value < -1) ? -1 : value; LoopCount = (repeatCnt < 0) ? repeatCnt : repeatCnt + 1; - tlog.Fatal(tag, $"[{GetId()}] repeatCnt={repeatCnt} ]AnimatedVectorImageView END]"); + NUILog.Debug($"[{GetId()}] repeatCnt={repeatCnt} ]AnimatedVectorImageView END]"); } get => repeatCnt; } @@ -161,7 +157,7 @@ namespace Tizen.NUI.BaseComponents { set { - tlog.Fatal(tag, $"[AnimatedVectorImageView START[ [{GetId()}] CurrentFrame SET"); + NUILog.Debug($"[AnimatedVectorImageView START[ [{GetId()}] CurrentFrame SET"); if (string.IsNullOrEmpty(resourceUrl)) { @@ -183,7 +179,7 @@ namespace Tizen.NUI.BaseComponents base.SetMinMaxFrame(0, totalFrameNum - 1); base.CurrentFrame = innerCurrentFrame; - tlog.Fatal(tag, $" [{GetId()}] innerCurrentFrame={innerCurrentFrame}) ]AnimatedVectorImageView END]"); + NUILog.Debug($" [{GetId()}] innerCurrentFrame={innerCurrentFrame}) ]AnimatedVectorImageView END]"); } get => innerCurrentFrame; } @@ -196,7 +192,7 @@ namespace Tizen.NUI.BaseComponents { set { - tlog.Fatal(tag, $"[AnimatedVectorImageView START[ [{GetId()}] RepeatMode SET"); + NUILog.Debug($"[AnimatedVectorImageView START[ [{GetId()}] RepeatMode SET"); repeatMode = value; switch (repeatMode) @@ -212,7 +208,7 @@ namespace Tizen.NUI.BaseComponents break; } - tlog.Fatal(tag, $" [{GetId()}] repeatMode={repeatMode}) ]AnimatedVectorImageView END]"); + NUILog.Debug($" [{GetId()}] repeatMode={repeatMode}) ]AnimatedVectorImageView END]"); } get => repeatMode; } @@ -251,7 +247,7 @@ namespace Tizen.NUI.BaseComponents [EditorBrowsable(EditorBrowsableState.Never)] public void SetMinAndMaxFrame(int minFrame, int maxFrame) { - tlog.Fatal(tag, $"[AnimatedVectorImageView START[ [{GetId()}] SetMinAndMaxFrame({minFrame}, {maxFrame})"); + NUILog.Debug($"[AnimatedVectorImageView START[ [{GetId()}] SetMinAndMaxFrame({minFrame}, {maxFrame})"); minimumFrame = (minFrame) > 0 ? minFrame : 0; maximumFrame = (maxFrame) > 0 ? maxFrame : 0; @@ -272,7 +268,7 @@ namespace Tizen.NUI.BaseComponents return; } - tlog.Fatal(tag, $" [{GetId()}] minimumFrame:{minimumFrame}, maximumFrame:{maximumFrame}) ]AnimatedVectorImageView END]"); + NUILog.Debug($" [{GetId()}] minimumFrame:{minimumFrame}, maximumFrame:{maximumFrame}) ]AnimatedVectorImageView END]"); } /// @@ -283,7 +279,7 @@ namespace Tizen.NUI.BaseComponents [EditorBrowsable(EditorBrowsableState.Never)] public new void SetMinMaxFrame(int minFrame, int maxFrame) { - tlog.Fatal(tag, $"SetMinMaxFrame({minFrame}, {maxFrame})!!!"); + NUILog.Debug($"SetMinMaxFrame({minFrame}, {maxFrame})!!!"); minimumFrame = (minFrame) > 0 ? minFrame : 0; maximumFrame = (maxFrame) > 0 ? maxFrame : 0; @@ -312,7 +308,7 @@ namespace Tizen.NUI.BaseComponents [EditorBrowsable(EditorBrowsableState.Never)] public new void SetMinMaxFrameByMarker(string marker1, string marker2 = null) { - tlog.Fatal(tag, $"SetMinMaxFrameByMarker({marker1}, {marker2})"); + NUILog.Debug($"SetMinMaxFrameByMarker({marker1}, {marker2})"); isMinMaxFrameSet = minMaxSetTypes.SetByMarker; base.SetMinMaxFrameByMarker(marker1, marker2); } @@ -323,7 +319,7 @@ namespace Tizen.NUI.BaseComponents [EditorBrowsable(EditorBrowsableState.Never)] public new void Play() { - tlog.Fatal(tag, $"[AnimatedVectorImageView START[ [{GetId()}] AnimationState={AnimationState}, PlayState={PlayState}"); + NUILog.Debug($"[AnimatedVectorImageView START[ [{GetId()}] AnimationState={AnimationState}, PlayState={PlayState}"); if (string.IsNullOrEmpty(resourceUrl)) { @@ -356,7 +352,7 @@ namespace Tizen.NUI.BaseComponents base.Play(); AnimationState = AnimationStates.Playing; - tlog.Fatal(tag, $" [{GetId()}] isMinMaxFrameSet={isMinMaxFrameSet}) ]AnimatedVectorImageView END]"); + NUILog.Debug($" [{GetId()}] isMinMaxFrameSet={isMinMaxFrameSet}) ]AnimatedVectorImageView END]"); } /// @@ -365,7 +361,7 @@ namespace Tizen.NUI.BaseComponents [EditorBrowsable(EditorBrowsableState.Never)] public new void Pause() { - tlog.Fatal(tag, $"[AnimatedVectorImageView START[ [{GetId()}] AnimationState={AnimationState}, PlayState={PlayState}"); + NUILog.Debug($"[AnimatedVectorImageView START[ [{GetId()}] AnimationState={AnimationState}, PlayState={PlayState}"); if (string.IsNullOrEmpty(resourceUrl)) { @@ -375,7 +371,7 @@ namespace Tizen.NUI.BaseComponents base.Pause(); AnimationState = AnimationStates.Paused; - tlog.Fatal(tag, $" [{GetId()}] ]AnimatedVectorImageView END]"); + NUILog.Debug($" [{GetId()}] ]AnimatedVectorImageView END]"); } /// @@ -389,7 +385,7 @@ namespace Tizen.NUI.BaseComponents [EditorBrowsable(EditorBrowsableState.Never)] public void Stop(EndActions endAction = EndActions.Cancel) { - tlog.Fatal(tag, $"[AnimatedVectorImageView START[ [{GetId()}] endAction:({endAction}), PlayState={PlayState}"); + NUILog.Debug($"[AnimatedVectorImageView START[ [{GetId()}] endAction:({endAction}), PlayState={PlayState}"); if (string.IsNullOrEmpty(resourceUrl)) { @@ -416,7 +412,7 @@ namespace Tizen.NUI.BaseComponents StopBehavior = StopBehaviorType.MaximumFrame; break; default: - tlog.Fatal(tag, $" [{GetId()}] no endAction : default set"); + NUILog.Debug($" [{GetId()}] no endAction : default set"); break; } } @@ -431,18 +427,18 @@ namespace Tizen.NUI.BaseComponents case minMaxSetTypes.NotSetByUser: if (base.CurrentFrame != totalFrameNum - 1) { - tlog.Fatal(tag, $"isMinMaxFrameSet:{isMinMaxFrameSet}, CurrentFrameNumber:{base.CurrentFrame}, totalFrameNum:{ totalFrameNum}"); + NUILog.Debug($"isMinMaxFrameSet:{isMinMaxFrameSet}, CurrentFrameNumber:{base.CurrentFrame}, totalFrameNum:{ totalFrameNum}"); base.CurrentFrame = totalFrameNum - 1; - tlog.Fatal(tag, $"set CurrentFrameNumber({base.CurrentFrame}) as totalFrameNum({maximumFrame}) - 1 !"); + NUILog.Debug($"set CurrentFrameNumber({base.CurrentFrame}) as totalFrameNum({maximumFrame}) - 1 !"); } break; case minMaxSetTypes.SetByMinAndMaxFrameMethod: if (base.CurrentFrame != maximumFrame) { - tlog.Fatal(tag, $"isMinMaxFrameSet:{isMinMaxFrameSet}, CurrentFrameNumber:{base.CurrentFrame}, maximumFrame:{ maximumFrame}"); + NUILog.Debug($"isMinMaxFrameSet:{isMinMaxFrameSet}, CurrentFrameNumber:{base.CurrentFrame}, maximumFrame:{ maximumFrame}"); base.CurrentFrame = maximumFrame; - tlog.Fatal(tag, $"set CurrentFrameNumber({base.CurrentFrame}) as maximumFrame({maximumFrame})!!!"); + NUILog.Debug($"set CurrentFrameNumber({base.CurrentFrame}) as maximumFrame({maximumFrame})!!!"); } break; case minMaxSetTypes.SetByBaseSetMinMaxFrameMethod: @@ -452,7 +448,7 @@ namespace Tizen.NUI.BaseComponents break; } } - tlog.Fatal(tag, $" [{GetId()}] ]AnimatedVectorImageView END]"); + NUILog.Debug($" [{GetId()}] ]AnimatedVectorImageView END]"); } #endregion Method diff --git a/src/Tizen.NUI/src/public/BaseComponents/LottieAnimationView.cs b/src/Tizen.NUI/src/public/BaseComponents/LottieAnimationView.cs index c2cfad852..74892df 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/LottieAnimationView.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/LottieAnimationView.cs @@ -23,10 +23,6 @@ using System.Globalization; namespace Tizen.NUI.BaseComponents { -#if (NUI_DEBUG_ON) - using tlog = Tizen.Log; -#endif - /// /// LottieAnimationView renders an animated vector image (Lottie file). /// @@ -52,7 +48,7 @@ namespace Tizen.NUI.BaseComponents /// 7 public LottieAnimationView(float scale = 1.0f, bool shown = true) : base() { - tlog.Fatal(tag, $"< constructor GetId={GetId()} >"); + NUILog.Debug($"< constructor GetId={GetId()} >"); currentStates.url = ""; currentStates.frame = -1; currentStates.loopCount = 1; @@ -80,8 +76,6 @@ namespace Tizen.NUI.BaseComponents return; } - tlog.Fatal(tag, $"<[{GetId()}] type={type}"); - //Release your own unmanaged resources here. //You should not access any managed member here except static instance. //because the execution order of Finalizes is non-deterministic. @@ -91,11 +85,10 @@ namespace Tizen.NUI.BaseComponents { VisualEventSignal().Disconnect(visualEventSignalCallback); finishedEventHandler = null; - tlog.Fatal(tag, $"disconnect event signal"); + NUILog.Debug($"disconnect event signal"); } base.Dispose(type); - tlog.Fatal(tag, $"[{GetId()}]>"); } #endregion Constructor, Destructor, Dispose @@ -113,7 +106,7 @@ namespace Tizen.NUI.BaseComponents currentStates.url = ret; currentStates.changed = true; - tlog.Fatal(tag, $"<[{GetId()}]SET url={currentStates.url}"); + NUILog.Debug($"<[{GetId()}]SET url={currentStates.url}"); PropertyMap map = new PropertyMap(); map.Add(Visual.Property.Type, new PropertyValue((int)DevelVisual.Type.AnimatedVectorImage)) @@ -129,12 +122,12 @@ namespace Tizen.NUI.BaseComponents { Scale = new Vector3(currentStates.scale, currentStates.scale, 0.0f); } - tlog.Fatal(tag, $"<[{GetId()}]>"); + NUILog.Debug($"<[{GetId()}]>"); } get { string ret = currentStates.url; - tlog.Fatal(tag, $"<[{GetId()}] GET"); + NUILog.Debug($"<[{GetId()}] GET"); PropertyMap map = Image; if (map != null) @@ -144,7 +137,7 @@ namespace Tizen.NUI.BaseComponents { if (val.Get(out ret)) { - tlog.Fatal(tag, $"gotten url={ret} >"); + NUILog.Debug($"gotten url={ret} >"); return ret; } } @@ -162,7 +155,7 @@ namespace Tizen.NUI.BaseComponents { get { - tlog.Fatal(tag, $"< Get!"); + NUILog.Debug($"< Get!"); PropertyMap map = base.Image; var ret = 0; if (map != null) @@ -173,7 +166,7 @@ namespace Tizen.NUI.BaseComponents if (val.Get(out ret)) { currentStates.playState = (PlayStateType)ret; - tlog.Fatal(tag, $"gotten play state={ret} >"); + NUILog.Debug($"gotten play state={ret} >"); } } } @@ -202,7 +195,7 @@ namespace Tizen.NUI.BaseComponents { if (val.Get(out ret)) { - //tlog.Fatal(tag, $"TotalFrameNumber get! ret={ret}"); + //NUILog.Debug( $"TotalFrameNumber get! ret={ret}"); currentStates.totalFrame = ret; return ret; } @@ -237,7 +230,7 @@ namespace Tizen.NUI.BaseComponents set { currentStates.frame = value; - tlog.Fatal(tag, $"<[{GetId()}]SET frame={currentStates.frame}>"); + NUILog.Debug($"<[{GetId()}]SET frame={currentStates.frame}>"); DoAction(ImageView.Property.IMAGE, (int)actionType.jumpTo, new PropertyValue(currentStates.frame)); } get @@ -251,7 +244,7 @@ namespace Tizen.NUI.BaseComponents { if (val.Get(out ret)) { - //tlog.Fatal(tag, $"CurrentFrameNumber get! val={ret}"); + //NUILog.Debug( $"CurrentFrameNumber get! val={ret}"); return ret; } } @@ -272,14 +265,14 @@ namespace Tizen.NUI.BaseComponents currentStates.loopMode = (LoopingModeType)value; currentStates.changed = true; - tlog.Fatal(tag, $"<[{GetId()}] SET loopMode={currentStates.loopMode}>"); + NUILog.Debug($"<[{GetId()}] SET loopMode={currentStates.loopMode}>"); PropertyMap map = new PropertyMap(); map.Add(ImageVisualProperty.LoopingMode, new PropertyValue((int)currentStates.loopMode)); DoAction(ImageView.Property.IMAGE, (int)actionType.updateProperty, new PropertyValue(map)); } get { - //tlog.Fatal(tag, $"LoopMode get!"); + //NUILog.Debug( $"LoopMode get!"); PropertyMap map = base.Image; var ret = 0; if (map != null) @@ -289,10 +282,10 @@ namespace Tizen.NUI.BaseComponents { if (val.Get(out ret)) { - //tlog.Fatal(tag, $"gotten LoopMode={ret}"); + //NUILog.Debug( $"gotten LoopMode={ret}"); if (ret != (int)currentStates.loopMode && ret > 0) { - tlog.Fatal(tag, $" [ERROR][{GetId()}](LottieAnimationView) different LoopMode! gotten={ret}, loopMode={currentStates.loopMode}"); + NUILog.Debug($" [ERROR][{GetId()}](LottieAnimationView) different LoopMode! gotten={ret}, loopMode={currentStates.loopMode}"); } currentStates.loopMode = (LoopingModeType)ret; return (LoopingModeType)ret; @@ -329,14 +322,14 @@ namespace Tizen.NUI.BaseComponents { currentStates.changed = true; currentStates.loopCount = value; - tlog.Fatal(tag, $"<[{GetId()}]SET currentStates.loopCount={currentStates.loopCount}>"); + NUILog.Debug($"<[{GetId()}]SET currentStates.loopCount={currentStates.loopCount}>"); PropertyMap map = new PropertyMap(); map.Add(ImageVisualProperty.LoopCount, new PropertyValue(currentStates.loopCount)); DoAction(ImageView.Property.IMAGE, (int)actionType.updateProperty, new PropertyValue(map)); } get { - //tlog.Fatal(tag, $"LoopCount get!"); + //NUILog.Debug( $"LoopCount get!"); PropertyMap map = base.Image; var ret = 0; if (map != null) @@ -346,10 +339,10 @@ namespace Tizen.NUI.BaseComponents { if (val.Get(out ret)) { - //tlog.Fatal(tag, $"gotten loop count={ret}"); + //NUILog.Debug( $"gotten loop count={ret}"); if (ret != currentStates.loopCount && ret > 0) { - tlog.Fatal(tag, $"<[ERROR][{GetId()}](LottieAnimationView) different loop count! gotten={ret}, loopCount={currentStates.loopCount}>"); + NUILog.Debug($"<[ERROR][{GetId()}](LottieAnimationView) different loop count! gotten={ret}, loopCount={currentStates.loopCount}>"); } currentStates.loopCount = ret; return currentStates.loopCount; @@ -372,14 +365,14 @@ namespace Tizen.NUI.BaseComponents currentStates.stopEndAction = (StopBehaviorType)value; currentStates.changed = true; - tlog.Fatal(tag, $"<[{GetId()}]SET val={currentStates.stopEndAction}>"); + NUILog.Debug($"<[{GetId()}]SET val={currentStates.stopEndAction}>"); PropertyMap map = new PropertyMap(); map.Add(ImageVisualProperty.StopBehavior, new PropertyValue((int)currentStates.stopEndAction)); DoAction(ImageView.Property.IMAGE, (int)actionType.updateProperty, new PropertyValue(map)); } get { - //tlog.Fatal(tag, $"StopBehavior get!"); + //NUILog.Debug( $"StopBehavior get!"); PropertyMap map = base.Image; var ret = 0; if (map != null) @@ -389,10 +382,10 @@ namespace Tizen.NUI.BaseComponents { if (val.Get(out ret)) { - //tlog.Fatal(tag, $"gotten StopBehavior={ret}"); + //NUILog.Debug( $"gotten StopBehavior={ret}"); if (ret != (int)currentStates.stopEndAction) { - tlog.Fatal(tag, $"<[ERROR][{GetId()}](LottieAnimationView) different StopBehavior! gotten={ret}, StopBehavior={currentStates.stopEndAction}>"); + NUILog.Debug($"<[ERROR][{GetId()}](LottieAnimationView) different StopBehavior! gotten={ret}, StopBehavior={currentStates.stopEndAction}>"); } currentStates.stopEndAction = (StopBehaviorType)ret; return (StopBehaviorType)ret; @@ -418,7 +411,7 @@ namespace Tizen.NUI.BaseComponents { currentStates.changed = true; currentStates.redrawInScalingDown = value; - tlog.Fatal(tag, $"<[{GetId()}]SET currentStates.redrawInScalingDown={currentStates.redrawInScalingDown}>"); + NUILog.Debug($"<[{GetId()}]SET currentStates.redrawInScalingDown={currentStates.redrawInScalingDown}>"); PropertyMap map = new PropertyMap(); map.Add(ImageVisualProperty.RedrawInScalingDown, new PropertyValue(currentStates.redrawInScalingDown)); DoAction(ImageView.Property.IMAGE, (int)actionType.updateProperty, new PropertyValue(map)); @@ -436,7 +429,7 @@ namespace Tizen.NUI.BaseComponents { if (ret != currentStates.redrawInScalingDown) { - tlog.Fatal(tag, $"<[ERROR][{GetId()}](LottieAnimationView) different redrawInScalingDown! gotten={ret}, redrawInScalingDown={currentStates.redrawInScalingDown}>"); + NUILog.Debug($"<[ERROR][{GetId()}](LottieAnimationView) different redrawInScalingDown! gotten={ret}, redrawInScalingDown={currentStates.redrawInScalingDown}>"); } currentStates.redrawInScalingDown = ret; return currentStates.redrawInScalingDown; @@ -459,7 +452,7 @@ namespace Tizen.NUI.BaseComponents /// 7 public void SetMinMaxFrame(int minFrame, int maxFrame) { - tlog.Fatal(tag, $"< [{GetId()}] SetPlayRange({minFrame}, {maxFrame})"); + NUILog.Debug($"< [{GetId()}] SetPlayRange({minFrame}, {maxFrame})"); currentStates.changed = true; currentStates.framePlayRangeMin = minFrame; @@ -472,7 +465,7 @@ namespace Tizen.NUI.BaseComponents PropertyMap map = new PropertyMap(); map.Add(ImageVisualProperty.PlayRange, new PropertyValue(array)); DoAction(ImageView.Property.IMAGE, (int)actionType.updateProperty, new PropertyValue(map)); - tlog.Fatal(tag, $" [{GetId()}] currentStates.min:({currentStates.framePlayRangeMin}, max:{currentStates.framePlayRangeMax})>"); + NUILog.Debug($" [{GetId()}] currentStates.min:({currentStates.framePlayRangeMin}, max:{currentStates.framePlayRangeMax})>"); } /// @@ -481,10 +474,10 @@ namespace Tizen.NUI.BaseComponents /// 7 public new void Play() { - tlog.Fatal(tag, $"<[{GetId()}] Play()"); + NUILog.Debug($"<[{GetId()}] Play()"); debugPrint(); base.Play(); - tlog.Fatal(tag, $"[{GetId()}]>"); + NUILog.Debug($"[{GetId()}]>"); } /// @@ -493,10 +486,10 @@ namespace Tizen.NUI.BaseComponents /// 7 public new void Pause() { - tlog.Fatal(tag, $"<[{GetId()}] Pause()>"); + NUILog.Debug($"<[{GetId()}] Pause()>"); debugPrint(); base.Pause(); - tlog.Fatal(tag, $"[{GetId()}]>"); + NUILog.Debug($"[{GetId()}]>"); } /// @@ -505,10 +498,10 @@ namespace Tizen.NUI.BaseComponents /// 7 public new void Stop() { - tlog.Fatal(tag, $"<[{GetId()}] Stop()"); + NUILog.Debug($"<[{GetId()}] Stop()"); debugPrint(); base.Stop(); - tlog.Fatal(tag, $"[{GetId()}]>"); + NUILog.Debug($"[{GetId()}]>"); } /// @@ -518,7 +511,7 @@ namespace Tizen.NUI.BaseComponents /// 7 public List> GetContentInfo() { - tlog.Fatal(tag, $"<"); + NUILog.Debug($"<"); if (currentStates.contentInfo != null) { return currentStates.contentInfo; @@ -545,7 +538,7 @@ namespace Tizen.NUI.BaseComponents arr.GetElementAt(0).Get(out startFrame); arr.GetElementAt(1).Get(out endFrame); - tlog.Fatal(tag, $"[{i}] layer name={key}, startFrame={startFrame}, endFrame={endFrame}"); + NUILog.Debug($"[{i}] layer name={key}, startFrame={startFrame}, endFrame={endFrame}"); Tuple item = new Tuple(key, startFrame, endFrame); @@ -555,7 +548,7 @@ namespace Tizen.NUI.BaseComponents } } } - tlog.Fatal(tag, $">"); + NUILog.Debug($">"); return currentStates.contentInfo; } @@ -570,7 +563,7 @@ namespace Tizen.NUI.BaseComponents [EditorBrowsable(EditorBrowsableState.Never)] public void SetMinMaxFrameByMarker(string marker1, string marker2 = null) { - tlog.Fatal(tag, $"< [{GetId()}] SetMinMaxFrameByMarker({marker1}, {marker2})"); + NUILog.Debug($"< [{GetId()}] SetMinMaxFrameByMarker({marker1}, {marker2})"); currentStates.changed = true; currentStates.mark1 = marker1; @@ -586,7 +579,7 @@ namespace Tizen.NUI.BaseComponents PropertyMap map = new PropertyMap(); map.Add(ImageVisualProperty.PlayRange, new PropertyValue(array)); DoAction(ImageView.Property.IMAGE, (int)actionType.updateProperty, new PropertyValue(map)); - tlog.Fatal(tag, $" [{GetId()}] currentStates.mark1:{currentStates.mark1}, mark2:{currentStates.mark2} >"); + NUILog.Debug($" [{GetId()}] currentStates.mark1:{currentStates.mark1}, mark2:{currentStates.mark2} >"); } /// @@ -597,7 +590,7 @@ namespace Tizen.NUI.BaseComponents [EditorBrowsable(EditorBrowsableState.Never)] public Tuple GetMinMaxFrame() { - tlog.Fatal(tag, $"< [{GetId()}] GetMinMaxFrame()! total frame={currentStates.totalFrame}"); + NUILog.Debug($"< [{GetId()}] GetMinMaxFrame()! total frame={currentStates.totalFrame}"); PropertyMap map = Image; if (map != null) @@ -616,7 +609,7 @@ namespace Tizen.NUI.BaseComponents int intRet; if (v.Get(out intRet)) { - tlog.Fatal(tag, $"Got play range of string [{i}]: {intRet}"); + NUILog.Debug($"Got play range of string [{i}]: {intRet}"); if (i == 0) { item1 = intRet; @@ -631,7 +624,7 @@ namespace Tizen.NUI.BaseComponents Tizen.Log.Error("NUI", $"[ERR] fail to get play range from dali! case#1"); } } - tlog.Fatal(tag, $" [{GetId()}] GetMinMaxFrame(min:{item1}, max:{item2})! >"); + NUILog.Debug($" [{GetId()}] GetMinMaxFrame(min:{item1}, max:{item2})! >"); return new Tuple(item1, item2); } } @@ -653,7 +646,7 @@ namespace Tizen.NUI.BaseComponents { if (finishedEventHandler == null) { - tlog.Fatal(tag, $"<[{GetId()}] Finished eventhandler added>"); + NUILog.Debug($"<[{GetId()}] Finished eventhandler added>"); visualEventSignalCallback = onVisualEventSignal; VisualEventSignal().Connect(visualEventSignalCallback); } @@ -661,7 +654,7 @@ namespace Tizen.NUI.BaseComponents } remove { - tlog.Fatal(tag, $"<[{GetId()}] Finished eventhandler removed>"); + NUILog.Debug($"<[{GetId()}] Finished eventhandler removed>"); finishedEventHandler -= value; if (finishedEventHandler == null && visualEventSignalCallback != null) { @@ -834,7 +827,7 @@ namespace Tizen.NUI.BaseComponents private void OnFinished() { - tlog.Fatal(tag, $"<[{GetId()}] OnFinished()>"); + NUILog.Debug($"<[{GetId()}] OnFinished()>"); finishedEventHandler?.Invoke(this, null); } @@ -847,11 +840,11 @@ namespace Tizen.NUI.BaseComponents View v = Registry.GetManagedBaseHandleFromNativePtr(targetView) as View; if (v != null) { - tlog.Fatal(tag, $"targetView is not null! name={v.Name}"); + NUILog.Debug($"targetView is not null! name={v.Name}"); } else { - tlog.Fatal(tag, $"target is something created from dali"); + NUILog.Debug($"target is something created from dali"); } } VisualEventSignalArgs e = new VisualEventSignalArgs(); @@ -859,7 +852,7 @@ namespace Tizen.NUI.BaseComponents e.SignalId = signalId; visualEventSignalHandler?.Invoke(this, e); - tlog.Fatal(tag, $"<[{GetId()}] onVisualEventSignal()! visualIndex={visualIndex}, signalId={signalId}>"); + NUILog.Debug($"<[{GetId()}] onVisualEventSignal()! visualIndex={visualIndex}, signalId={signalId}>"); } [UnmanagedFunctionPointer(CallingConvention.StdCall)] @@ -870,11 +863,11 @@ namespace Tizen.NUI.BaseComponents private void debugPrint() { - tlog.Fatal(tag, $"==================================="); - tlog.Fatal(tag, $"<[{GetId()}] get currentStates : url={currentStates.url}, loopCount={currentStates.loopCount}, \nframePlayRangeMin/Max({currentStates.framePlayRangeMin},{currentStates.framePlayRangeMax}) "); - tlog.Fatal(tag, $" get from Property : StopBehavior={StopBehavior}, LoopMode={LoopingMode}, LoopCount={LoopCount}, PlayState={PlayState}"); - tlog.Fatal(tag, $" RedrawInScalingDown={RedrawInScalingDown} >"); - tlog.Fatal(tag, $"==================================="); + NUILog.Debug($"==================================="); + NUILog.Debug($"<[{GetId()}] get currentStates : url={currentStates.url}, loopCount={currentStates.loopCount}, \nframePlayRangeMin/Max({currentStates.framePlayRangeMin},{currentStates.framePlayRangeMax}) "); + NUILog.Debug($" get from Property : StopBehavior={StopBehavior}, LoopMode={LoopingMode}, LoopCount={LoopCount}, PlayState={PlayState}"); + NUILog.Debug($" RedrawInScalingDown={RedrawInScalingDown} >"); + NUILog.Debug($"==================================="); } #endregion Private }