aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Common/Logging/LogEventArgs.cs
blob: 363a45b9ade57f794f28691cd4b7b0cfef36ae11 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;

namespace Ryujinx.Common.Logging
{
    public class LogEventArgs : EventArgs
    {
        public LogLevel Level    { get; private set; }
        public TimeSpan Time     { get; private set; }
        public int      ThreadId { get; private set; }

        public string Message { get; private set; }
        public object Data    { get; private set; }

        public LogEventArgs(LogLevel level, TimeSpan time, int threadId, string message)
        {
            this.Level    = level;
            this.Time     = time;
            this.ThreadId = threadId;
            this.Message  = message;
        }

        public LogEventArgs(LogLevel level, TimeSpan time, int threadId, string message, object data)
        {
            this.Level    = level;
            this.Time     = time;
            this.ThreadId = threadId;
            this.Message  = message;
            this.Data     = data;
        }
    }
}