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