1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-14 11:23:42 +02:00
Sonarr/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 06:14:43 +03:00
[SubSonicPrimaryKey]
public int LogId { get; protected set; }
[SubSonicLongString]
public string Message { get; set; }
2011-04-06 06:14:43 +03:00
public DateTime Time { get; set; }
2011-04-06 06:14:43 +03:00
public string Logger { get; set; }
[SubSonicNullString]
public string Stack { get; set; }
2011-04-06 06:14:43 +03:00
[SubSonicNullString]
[SubSonicLongString]
public string ExceptionMessage { get; set; }
2011-04-06 06:14:43 +03:00
[SubSonicNullString]
[SubSonicLongString]
public string ExceptionString { get; set; }
2011-04-06 06:14:43 +03:00
[SubSonicNullString]
public string ExceptionType { get; set; }
public LogLevel Level { get; set; }
2011-04-06 06:14:43 +03:00
//This is needed for Telerik grid binding
[SubSonicIgnore]
2011-04-06 06:14:43 +03:00
public string DisplayLevel
{
get { return Level.ToString(); }
}
}
}