1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-10-31 07:52:37 +01:00
Sonarr/NzbDrone.Core/Instrumentation/Log.cs
2011-04-05 20:14:43 -07:00

42 lines
968 B
C#

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