当前位置: 首页>>代码示例>>C#>>正文


C# MvxTraceLevel类代码示例

本文整理汇总了C#中MvxTraceLevel的典型用法代码示例。如果您正苦于以下问题:C# MvxTraceLevel类的具体用法?C# MvxTraceLevel怎么用?C# MvxTraceLevel使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


MvxTraceLevel类属于命名空间,在下文中一共展示了MvxTraceLevel类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Trace

        public static void Trace(MvxTraceLevel level, string message, params object[] args)
        {
			if (level < TraceBindingLevel)
				return;
			
            MvxTrace.TaggedTrace(level, Tag, message, args);
        }
开发者ID:vmahaadevan,项目名称:Sharesource,代码行数:7,代码来源:MvxBindingTrace.cs

示例2: Trace

 /// <summary>
 /// Traces the specified level.
 /// </summary>
 /// <param name="level">The level.</param>
 /// <param name="tag">The tag.</param>
 /// <param name="message">The message.</param>
 public void Trace(
     MvxTraceLevel level,
     string tag,
     string message)
 {
     Debug.WriteLine(tag + ": " + level + ": " + message);
 }
开发者ID:obiwan007,项目名称:bettrdiet,代码行数:13,代码来源:TestTrace.cs

示例3: Trace

 public void Trace(MvxTraceLevel level, string tag, string message, params object[] args)
 {
     try {
         Debug.WriteLine(tag + ":" + level + ":" + message, args);
     } catch (FormatException) {
         Trace(MvxTraceLevel.Error, tag, "Exception during trace of {0} {1}", level, message);
     }
 }
开发者ID:geirsagberg,项目名称:HelloWord,代码行数:8,代码来源:DebugTrace.cs

示例4: Trace

 public void Trace(MvxTraceLevel level, string tag, string message, params object[] args)
 {
     try
     {
         Log.Info(tag, message, args);
         Debug.WriteLine(string.Format(tag + ":" + level + ":" + message, args));
     }
     catch (FormatException)
     {
         Trace(MvxTraceLevel.Error, tag, "Exception during trace");
         Trace(level, tag, message);
     }
 }
开发者ID:talisqualis,项目名称:MvvmCross-Build,代码行数:13,代码来源:MvxDebugTrace.cs

示例5: Trace

        public void Trace(MvxTraceLevel level, string tag, string message)
        {
            switch (level)
            {
                case MvxTraceLevel.Error:
                    Debug.LogError(tag + ": " + level + ": " + message);
                    break;

                case MvxTraceLevel.Warning:
                    Debug.LogWarning(tag + ": " + level + ": " + message);
                    break;

                case MvxTraceLevel.Diagnostic:
                    Debug.Log(tag + ": " + level + ": " + message);
                    break;
            }
        }
开发者ID:JordanMarr,项目名称:mvx-unity-ngui,代码行数:17,代码来源:MvxDebugTrace.cs

示例6: Trace

        public void Trace(MvxTraceLevel level, string tag, string message)
        {
            switch (level)
            {
                case MvxTraceLevel.Error:
                    Debug.LogError(string.Format("{0}:{1}:{2}", tag, level, message));
                    break;

                case MvxTraceLevel.Warning:
                    Debug.LogWarning(string.Format("{0}:{1}:{2}", tag, level, message));
                    break;

                case MvxTraceLevel.Diagnostic:
                    Debug.Log(string.Format("{0}:{1}:{2}", tag, level, message));
                    break;
            }
        }
开发者ID:ylyking,项目名称:mvx-unity-ngui,代码行数:17,代码来源:MvxDebugTrace.cs

示例7: Trace

        public void Trace(MvxTraceLevel level, string tag, string message, params object[] args)
        {
#if DEBUG
			Console.WriteLine(tag + ": " + level + ": " + message, args);
#endif
        }
开发者ID:deapsquatter,项目名称:MvvmCross,代码行数:6,代码来源:MvxDebugTrace.cs

示例8: Trace

 public void Trace(MvxTraceLevel level, string tag, string message, params object[] args)
 {
     System.Diagnostics.Trace.WriteLine(string.Format(tag + ": " + level + ": " + message, args));
 }
开发者ID:indazoo,项目名称:MvvmCross_DesignData,代码行数:4,代码来源:MvxTraceTrace.cs

示例9: Trace

 public void Trace(MvxTraceLevel level, string tag, string message, params object[] args)
 {
     Log.Debug(tag, String.Format("[{0}] - {1}", level.ToString(), String.Format(message, args)));
 }
开发者ID:skyflyer,项目名称:PlayingWithMvvmCross,代码行数:4,代码来源:DebugTrace.cs

示例10: Trace

 public void Trace(MvxTraceLevel level, string tag, Func<string> message)
 {
     Console.WriteLine(tag + ":" + level + ":" + message());
 }
开发者ID:MvvmCross,项目名称:MvvmCross,代码行数:4,代码来源:MvxDebugTrace.cs

示例11: Trace

 public static void Trace(MvxTraceLevel level, string message, params object[] args)
 {
     MvxTrace.TaggedTrace(level, Tag, message, args);
 }
开发者ID:GSerjo,项目名称:MvvmCross,代码行数:4,代码来源:MvxBindingTrace.cs


注:本文中的MvxTraceLevel类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。