|
|
@@ -132,7 +132,7 @@ namespace Ryujinx.Common.Logging
|
|
|
_enabledClasses[index] = true;
|
|
|
}
|
|
|
|
|
|
- _logTargets = new List<ILogTarget>();
|
|
|
+ _logTargets = [];
|
|
|
|
|
|
_time = Stopwatch.StartNew();
|
|
|
|
|
|
@@ -203,7 +203,7 @@ namespace Ryujinx.Common.Logging
|
|
|
|
|
|
public static IReadOnlyCollection<LogLevel> GetEnabledLevels()
|
|
|
{
|
|
|
- Log?[] logs = new[] { Debug, Info, Warning, Error, Guest, AccessLog, Stub, Trace };
|
|
|
+ Log?[] logs = [Debug, Info, Warning, Error, Guest, AccessLog, Stub, Trace];
|
|
|
List<LogLevel> levels = new(logs.Length);
|
|
|
foreach (Log? log in logs)
|
|
|
{
|