Ryujinx-git/Ryujinx.Common/Logging/LogEventArgs.cs

31 lines
923 B
C#
Raw Normal View History

2018-04-24 18:57:39 +00:00
using System;
namespace Ryujinx.Common.Logging
2018-04-24 18:57:39 +00:00
{
public class LogEventArgs : EventArgs
{
public LogLevel Level { get; private set; }
public TimeSpan Time { get; private set; }
public string ThreadName { get; private set; }
2018-04-24 18:57:39 +00:00
public string Message { get; private set; }
public object Data { get; private set; }
2018-04-24 18:57:39 +00:00
public LogEventArgs(LogLevel level, TimeSpan time, string threadName, string message)
2018-04-24 18:57:39 +00:00
{
Level = level;
Time = time;
ThreadName = threadName;
Message = message;
}
public LogEventArgs(LogLevel level, TimeSpan time, string threadName, string message, object data)
{
Level = level;
Time = time;
ThreadName = threadName;
Message = message;
Data = data;
2018-04-24 18:57:39 +00:00
}
}
}