mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
added exceptron log target.
This commit is contained in:
parent
e37f413e19
commit
5ea794939c
26 changed files with 3113 additions and 0 deletions
111
Exceptron.Client/Message/ExceptionReport.cs
Normal file
111
Exceptron.Client/Message/ExceptionReport.cs
Normal file
|
@ -0,0 +1,111 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace Exceptron.Client.Message
|
||||
{
|
||||
internal class ExceptionReport
|
||||
{
|
||||
/// <summary>
|
||||
/// API key
|
||||
/// </summary>
|
||||
public string ap { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Application Version
|
||||
/// </summary>
|
||||
public string aver { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Exception Severity
|
||||
/// </summary>
|
||||
public int sv { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// User or Instance ID
|
||||
/// </summary>
|
||||
public string uid { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Type of exception
|
||||
/// </summary>
|
||||
public string ext { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Exception message
|
||||
/// </summary>
|
||||
public string exm { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// List of frames that make up the StackTrace of the exception
|
||||
/// </summary>
|
||||
public List<Frame> stk { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Component that experienced this exception
|
||||
/// </summary>
|
||||
public string cmp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Message that was logged along with the exception.
|
||||
/// </summary>
|
||||
public string msg { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// User's culture in
|
||||
/// </summary>
|
||||
/// <remarks>http://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo.name.aspx</remarks>
|
||||
public string cul { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// OS Version
|
||||
/// </summary>
|
||||
public string os { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Name of the Client that generated and is sending this message
|
||||
/// </summary>
|
||||
public string dn { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Version of the Client that generated and is sending this message
|
||||
/// </summary>
|
||||
public string dv { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Host name of the machine that encountered this exception
|
||||
/// </summary>
|
||||
public string hn { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Request url
|
||||
/// <remarks>Only used for exception in context of a web request/</remarks>
|
||||
public string url { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Browser useragent
|
||||
/// </summary>
|
||||
/// <remarks>Only used for exception in context of a web request/</remarks>
|
||||
public string ua { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// HTTP response status code
|
||||
/// </summary>
|
||||
/// <remarks>Only used for exception in context of a web request/</remarks>
|
||||
public int sc { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Indicates the HTTP data transfer method used by the client.
|
||||
/// </summary>
|
||||
/// <example>GET, POST, PUT, DELETE</example>
|
||||
public string hm { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Framework Version (CLR) of the Host Application
|
||||
/// </summary>
|
||||
public string fv { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Framework Type of the Host Application
|
||||
/// </summary>
|
||||
public string ft { get; set; }
|
||||
}
|
||||
}
|
34
Exceptron.Client/Message/ExceptionResponse.cs
Normal file
34
Exceptron.Client/Message/ExceptionResponse.cs
Normal file
|
@ -0,0 +1,34 @@
|
|||
using System;
|
||||
using Exceptron.Client.Configuration;
|
||||
|
||||
namespace Exceptron.Client.Message
|
||||
{
|
||||
public class ExceptionResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// Exception report reference ID. This ID will be shared across
|
||||
/// similar exceptions
|
||||
/// </summary>
|
||||
public string RefId { get; internal set; }
|
||||
|
||||
/// <summary>
|
||||
/// Was the report successfully processed on the server
|
||||
/// </summary>
|
||||
public bool Successful
|
||||
{
|
||||
get
|
||||
{
|
||||
return !string.IsNullOrEmpty(RefId);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Exception that caused the message to fail.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This property will only be populated if <see cref="ExceptronConfiguration.ThrowExceptions"/> is set to <see cref="bool.False"/>/>
|
||||
/// Exception is thrown if <see cref="ExceptronConfiguration.ThrowExceptions"/> is set to <see cref="bool.True"/>.
|
||||
/// </remarks>
|
||||
public Exception Exception { get; internal set; }
|
||||
}
|
||||
}
|
30
Exceptron.Client/Message/Frame.cs
Normal file
30
Exceptron.Client/Message/Frame.cs
Normal file
|
@ -0,0 +1,30 @@
|
|||
namespace Exceptron.Client.Message
|
||||
{
|
||||
internal class Frame
|
||||
{
|
||||
/// <summary>
|
||||
/// Order of current frame
|
||||
/// </summary>
|
||||
public int i { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Line number of the current frame
|
||||
/// </summary>
|
||||
public int ln { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// File name of the current frame
|
||||
/// </summary>
|
||||
public string fn { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Method name for current frame
|
||||
/// </summary>
|
||||
public string m { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Class name for current frame
|
||||
/// </summary>
|
||||
public string c { get; set; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue