~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/ITraceWriter.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
Import upstream version 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
using System;
 
2
using System.Collections.Generic;
 
3
using System.Diagnostics;
 
4
namespace Newtonsoft.Json.Serialization
 
5
{
 
6
  /// <summary>
 
7
  /// Represents a trace writer.
 
8
  /// </summary>
 
9
  public interface ITraceWriter
 
10
  {
 
11
    /// <summary>
 
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.
 
15
    /// </summary>
 
16
    /// <value>The <see cref="TraceLevel"/> that will be used to filter the trace messages passed to the writer.</value>
 
17
    TraceLevel LevelFilter { get; }
 
18
 
 
19
    /// <summary>
 
20
    /// Writes the specified trace level, message and optional exception.
 
21
    /// </summary>
 
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);
 
26
  }
 
27
}
 
 
b'\\ No newline at end of file'