diff options
| author | Ac_K <Acoustik666@gmail.com> | 2020-01-13 01:21:54 +0100 |
|---|---|---|
| committer | Thog <me@thog.eu> | 2020-01-13 01:21:54 +0100 |
| commit | 5facc0c07f8a3f6fd0f39229044fe120501162a7 (patch) | |
| tree | 58ea7980cd38214806152b5f13f2427102a78564 /Ryujinx.Common/Logging/Formatters/DefaultLogFormatter.cs | |
| parent | f0055482fd1aef9dcae7c6c4c6e01483f11f7839 (diff) | |
Name all threads (#886)
* Name all threads
Close #874
* use ThreadName instead of ThreadId in Logging
Diffstat (limited to 'Ryujinx.Common/Logging/Formatters/DefaultLogFormatter.cs')
| -rw-r--r-- | Ryujinx.Common/Logging/Formatters/DefaultLogFormatter.cs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Ryujinx.Common/Logging/Formatters/DefaultLogFormatter.cs b/Ryujinx.Common/Logging/Formatters/DefaultLogFormatter.cs index c6605e0e..73b0e2b6 100644 --- a/Ryujinx.Common/Logging/Formatters/DefaultLogFormatter.cs +++ b/Ryujinx.Common/Logging/Formatters/DefaultLogFormatter.cs @@ -18,8 +18,13 @@ namespace Ryujinx.Common.Logging sb.AppendFormat(@"{0:hh\:mm\:ss\.fff}", args.Time); sb.Append(" | "); - sb.AppendFormat("{0:d4}", args.ThreadId); - sb.Append(' '); + + if (args.ThreadName != null) + { + sb.Append(args.ThreadName); + sb.Append(' '); + } + sb.Append(args.Message); if (args.Data != null) |
