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
|
|
|
|
{
|
2020-08-03 19:32:53 -04:00
|
|
|
public readonly LogLevel Level;
|
|
|
|
public readonly TimeSpan Time;
|
|
|
|
public readonly string ThreadName;
|
2018-04-24 14:57:39 -04:00
|
|
|
|
2020-08-03 19:32:53 -04:00
|
|
|
public readonly string Message;
|
|
|
|
public readonly object Data;
|
2018-04-24 14:57:39 -04:00
|
|
|
|
2020-01-12 19:21:54 -05:00
|
|
|
public LogEventArgs(LogLevel level, TimeSpan time, string threadName, string message)
|
2018-04-24 14:57:39 -04:00
|
|
|
{
|
2020-01-12 19:21:54 -05:00
|
|
|
Level = level;
|
|
|
|
Time = time;
|
|
|
|
ThreadName = threadName;
|
|
|
|
Message = message;
|
2019-01-10 19:11:46 -05:00
|
|
|
}
|
|
|
|
|
2020-01-12 19:21:54 -05:00
|
|
|
public LogEventArgs(LogLevel level, TimeSpan time, string threadName, string message, object data)
|
2019-01-10 19:11:46 -05:00
|
|
|
{
|
2020-01-12 19:21:54 -05:00
|
|
|
Level = level;
|
|
|
|
Time = time;
|
|
|
|
ThreadName = threadName;
|
|
|
|
Message = message;
|
|
|
|
Data = data;
|
2018-04-24 14:57:39 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|