2
using System.Collections.Generic;
3
using System.Diagnostics;
4
namespace Newtonsoft.Json.Serialization
7
/// Represents a trace writer.
9
public interface ITraceWriter
12
/// Gets the <see cref="TraceLevel"/> that will be used to filter the trace messages passed to the writer.
13
/// For example a filter level of <code>Info</code> will exclude <code>Verbose</code> messages and include <code>Info</code>,
14
/// <code>Warning</code> and <code>Error</code> messages.
16
/// <value>The <see cref="TraceLevel"/> that will be used to filter the trace messages passed to the writer.</value>
17
TraceLevel LevelFilter { get; }
20
/// Writes the specified trace level, message and optional exception.
22
/// <param name="level">The <see cref="TraceLevel"/> at which to write this trace.</param>
23
/// <param name="message">The trace message.</param>
24
/// <param name="ex">The trace exception. This parameter is optional.</param>
25
void Trace(TraceLevel level, string message, Exception ex);
b'\\ No newline at end of file'