2018-04-24 14:57:39 -04:00
|
|
|
using System;
|
|
|
|
|
2018-10-17 13:15:50 -04:00
|
|
|
namespace Ryujinx.Common.Logging
|
2018-04-24 14:57:39 -04:00
|
|
|
{
|
|
|
|
public class LogEventArgs : EventArgs
|
|
|
|
{
|
2019-01-10 19:11:46 -05:00
|
|
|
public LogLevel Level { get; private set; }
|
|
|
|
public TimeSpan Time { get; private set; }
|
|
|
|
public int ThreadId { get; private set; }
|
2018-04-24 14:57:39 -04:00
|
|
|
|
|
|
|
public string Message { get; private set; }
|
2019-01-10 19:11:46 -05:00
|
|
|
public object Data { get; private set; }
|
2018-04-24 14:57:39 -04:00
|
|
|
|
2019-01-10 19:11:46 -05:00
|
|
|
public LogEventArgs(LogLevel level, TimeSpan time, int threadId, string message)
|
2018-04-24 14:57:39 -04:00
|
|
|
{
|
2019-01-10 19:11:46 -05:00
|
|
|
this.Level = level;
|
|
|
|
this.Time = time;
|
|
|
|
this.ThreadId = threadId;
|
|
|
|
this.Message = message;
|
|
|
|
}
|
|
|
|
|
|
|
|
public LogEventArgs(LogLevel level, TimeSpan time, int threadId, string message, object data)
|
|
|
|
{
|
|
|
|
this.Level = level;
|
|
|
|
this.Time = time;
|
|
|
|
this.ThreadId = threadId;
|
|
|
|
this.Message = message;
|
|
|
|
this.Data = data;
|
2018-04-24 14:57:39 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|