Radarr/NzbDrone.Core/Instrumentation/Log.cs

42 lines
968 B
C#
Raw Normal View History

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