本文整理汇总了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);
}
示例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);
}
示例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);
}
}
示例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);
}
}
示例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;
}
}
示例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;
}
}
示例7: Trace
public void Trace(MvxTraceLevel level, string tag, string message, params object[] args)
{
#if DEBUG
Console.WriteLine(tag + ": " + level + ": " + message, args);
#endif
}
示例8: Trace
public void Trace(MvxTraceLevel level, string tag, string message, params object[] args)
{
System.Diagnostics.Trace.WriteLine(string.Format(tag + ": " + level + ": " + message, args));
}
示例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)));
}
示例10: Trace
public void Trace(MvxTraceLevel level, string tag, Func<string> message)
{
Console.WriteLine(tag + ":" + level + ":" + message());
}
示例11: Trace
public static void Trace(MvxTraceLevel level, string message, params object[] args)
{
MvxTrace.TaggedTrace(level, Tag, message, args);
}