forked from amkovkov/GranuSightSoftware2
refactor: move Logging to GSS2.Core
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
|
using Microsoft.Extensions.Logging;
|
||||||
using Microsoft.Extensions.Logging.Abstractions;
|
using Microsoft.Extensions.Logging.Abstractions;
|
||||||
|
|
||||||
namespace GSS2.Test.Logging;
|
namespace GSS2.Core.Logging;
|
||||||
|
|
||||||
public sealed class ConsoleFormatter : Microsoft.Extensions.Logging.Console.ConsoleFormatter
|
public sealed class ConsoleFormatter : Microsoft.Extensions.Logging.Console.ConsoleFormatter
|
||||||
{
|
{
|
||||||
@@ -1,4 +1,6 @@
|
|||||||
namespace GSS2.Test.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
|
|
||||||
|
namespace GSS2.Core.Logging;
|
||||||
|
|
||||||
public sealed class FileLogger : ILogger
|
public sealed class FileLogger : ILogger
|
||||||
{
|
{
|
||||||
@@ -1,4 +1,6 @@
|
|||||||
namespace GSS2.Test.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
|
|
||||||
|
namespace GSS2.Core.Logging;
|
||||||
|
|
||||||
public sealed class FileLoggerProvider : ILoggerProvider
|
public sealed class FileLoggerProvider : ILoggerProvider
|
||||||
{
|
{
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
|
using Microsoft.Extensions.Logging;
|
||||||
using LibCameraSharp;
|
using LibCameraSharp;
|
||||||
|
|
||||||
namespace GSS2.Test.Logging;
|
namespace GSS2.Core.Logging;
|
||||||
|
|
||||||
public sealed class LibCameraLogSink : IDisposable
|
public sealed class LibCameraLogSink : IDisposable
|
||||||
{
|
{
|
||||||
@@ -35,6 +35,5 @@
|
|||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\GSS2.Core\GSS2.Core.csproj" />
|
<ProjectReference Include="..\GSS2.Core\GSS2.Core.csproj" />
|
||||||
<ProjectReference Include="..\GSS2.Vulkan\GSS2.Vulkan.csproj" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -4,10 +4,11 @@ using Microsoft.Extensions.Logging.Console;
|
|||||||
using Avalonia;
|
using Avalonia;
|
||||||
using Avalonia.OpenGL.Egl;
|
using Avalonia.OpenGL.Egl;
|
||||||
using GSS2.Core;
|
using GSS2.Core;
|
||||||
|
using GSS2.Core.Logging;
|
||||||
using GSS2.Core.Analysis.AmineContent.Database;
|
using GSS2.Core.Analysis.AmineContent.Database;
|
||||||
using GSS2.Test.Logging;
|
using ConsoleFormatter = GSS2.Core.Logging.ConsoleFormatter;
|
||||||
|
|
||||||
namespace GSS2.Test;
|
namespace GSS2.Test;
|
||||||
using ConsoleFormatter = GSS2.Test.Logging.ConsoleFormatter;
|
|
||||||
|
|
||||||
public class Program
|
public class Program
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user