2010-10-24 09:46:58 +02:00
|
|
|
|
using System;
|
|
|
|
|
using SubSonic.SqlGeneration.Schema;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Instrumentation
|
|
|
|
|
{
|
|
|
|
|
public class Log
|
|
|
|
|
{
|
2011-04-06 05:14:43 +02:00
|
|
|
|
[SubSonicPrimaryKey]
|
|
|
|
|
public int LogId { get; protected set; }
|
|
|
|
|
|
2011-01-29 07:10:22 +01:00
|
|
|
|
[SubSonicLongString]
|
2010-10-24 09:46:58 +02:00
|
|
|
|
public string Message { get; set; }
|
2011-04-06 05:14:43 +02:00
|
|
|
|
|
2010-10-24 09:46:58 +02:00
|
|
|
|
public DateTime Time { get; set; }
|
2011-04-06 05:14:43 +02:00
|
|
|
|
|
2010-10-24 09:46:58 +02:00
|
|
|
|
public string Logger { get; set; }
|
|
|
|
|
|
|
|
|
|
[SubSonicNullString]
|
|
|
|
|
public string Stack { get; set; }
|
2011-04-06 05:14:43 +02:00
|
|
|
|
|
2010-10-24 09:46:58 +02:00
|
|
|
|
[SubSonicNullString]
|
2011-01-29 07:10:22 +01:00
|
|
|
|
[SubSonicLongString]
|
2010-10-24 09:46:58 +02:00
|
|
|
|
public string ExceptionMessage { get; set; }
|
2011-04-06 05:14:43 +02:00
|
|
|
|
|
2010-10-24 09:46:58 +02:00
|
|
|
|
[SubSonicNullString]
|
2011-01-29 07:10:22 +01:00
|
|
|
|
[SubSonicLongString]
|
2010-10-24 09:46:58 +02:00
|
|
|
|
public string ExceptionString { get; set; }
|
2011-04-06 05:14:43 +02:00
|
|
|
|
|
2010-10-24 09:46:58 +02:00
|
|
|
|
[SubSonicNullString]
|
|
|
|
|
public string ExceptionType { get; set; }
|
|
|
|
|
|
|
|
|
|
public LogLevel Level { get; set; }
|
|
|
|
|
|
2011-04-06 05:14:43 +02:00
|
|
|
|
//This is needed for Telerik grid binding
|
2010-10-24 09:46:58 +02:00
|
|
|
|
[SubSonicIgnore]
|
2011-04-06 05:14:43 +02:00
|
|
|
|
public string DisplayLevel
|
|
|
|
|
{
|
2010-10-24 09:46:58 +02:00
|
|
|
|
get { return Level.ToString(); }
|
|
|
|
|
}
|
|
|
|
|
}
|
2011-04-10 04:44:01 +02:00
|
|
|
|
}
|