##// END OF EJS Templates
Added Skip method to JSON parser to skip contents of the current node
Added Skip method to JSON parser to skip contents of the current node

File last commit:

r52:edf0bc558596 default
r62:62b440d46313 default
Show More
TraceLog.cs
55 lines | 2.2 KiB | text/x-csharp | CSharpLexer
cin
improved log concept
r36 using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Implab.Diagnostics {
/// <summary>
cin
improved tracing...
r40 /// Класс для публикации событий выполнения программы, события публикуются через <see cref="LogChannel{TraceEvent}"/>.
/// Журнал трассировки отражает логический ход выполнения программы и существует всегда, поскольку тесно связан с
/// контекстом трассировки.
cin
improved log concept
r36 /// </summary>
public static class TraceLog {
[Conditional("TRACE")]
public static void StartLogicalOperation() {
TraceContext.Current.StartLogicalOperation();
}
[Conditional("TRACE")]
public static void StartLogicalOperation(string name) {
TraceContext.Current.StartLogicalOperation(name);
}
[Conditional("TRACE")]
public static void EndLogicalOperation() {
TraceContext.Current.EndLogicalOperation();
}
[Conditional("TRACE")]
cin
improved trace system
r52 public static void BindLogicalOperationToPromise(IPromiseBase promise) {
TraceContext.Current.BindLogicalOperationToPromise(promise);
}
[Conditional("TRACE")]
cin
improved log concept
r36 public static void TraceInformation(string format, params object[] arguments) {
LogChannel<TraceEvent>.Default.LogEvent(TraceEvent.Create(TraceEventType.Information, format, arguments));
}
[Conditional("TRACE")]
public static void TraceWarning(string format, params object[] arguments) {
LogChannel<TraceEvent>.Default.LogEvent(TraceEvent.Create(TraceEventType.Warning, format, arguments));
}
[Conditional("TRACE")]
public static void TraceError(string format, params object[] arguments) {
LogChannel<TraceEvent>.Default.LogEvent(TraceEvent.Create(TraceEventType.Error, format, arguments));
}
[Conditional("TRACE")]
public static void TraceError(Exception err) {
TraceError("{0}", err);
}
}
}