aboutsummaryrefslogblamecommitdiff
path: root/Ryujinx.Common/Logging/LogEventArgs.cs
blob: 511c8e6e2755672eaa77c89263fdb515d1fca6c4 (plain) (tree)
1
2
3
4
5
6
7
8
9
             
                                

                                         

                                            
 
                                       
 
                                                                                             
         


                                    
         
                                                                                                          
         



                                    

         
using System;

namespace Ryujinx.Common.Logging
{
    public class LogEventArgs : EventArgs
    {
        public readonly LogLevel Level;
        public readonly TimeSpan Time;
        public readonly string   ThreadName;

        public readonly string Message;
        public readonly object Data;

        public LogEventArgs(LogLevel level, TimeSpan time, string threadName, string message)
        {
            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;
        }
    }
}