2018-04-24 11:57:39 -07:00
|
|
|
using System;
|
|
|
|
|
2018-10-17 10:15:50 -07:00
|
|
|
namespace Ryujinx.Common.Logging
|
2018-04-24 11:57:39 -07:00
|
|
|
{
|
|
|
|
public class LogEventArgs : EventArgs
|
|
|
|
{
|
2020-01-12 16:21:54 -08:00
|
|
|
public LogLevel Level { get; private set; }
|
|
|
|
public TimeSpan Time { get; private set; }
|
|
|
|
public string ThreadName { get; private set; }
|
2018-04-24 11:57:39 -07:00
|
|
|
|
|
|
|
public string Message { get; private set; }
|
2019-01-10 16:11:46 -08:00
|
|
|
public object Data { get; private set; }
|
2018-04-24 11:57:39 -07:00
|
|
|
|
2020-01-12 16:21:54 -08:00
|
|
|
public LogEventArgs(LogLevel level, TimeSpan time, string threadName, string message)
|
2018-04-24 11:57:39 -07:00
|
|
|
{
|
2020-01-12 16:21:54 -08:00
|
|
|
Level = level;
|
|
|
|
Time = time;
|
|
|
|
ThreadName = threadName;
|
|
|
|
Message = message;
|
2019-01-10 16:11:46 -08:00
|
|
|
}
|
|
|
|
|
2020-01-12 16:21:54 -08:00
|
|
|
public LogEventArgs(LogLevel level, TimeSpan time, string threadName, string message, object data)
|
2019-01-10 16:11:46 -08:00
|
|
|
{
|
2020-01-12 16:21:54 -08:00
|
|
|
Level = level;
|
|
|
|
Time = time;
|
|
|
|
ThreadName = threadName;
|
|
|
|
Message = message;
|
|
|
|
Data = data;
|
2018-04-24 11:57:39 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|