mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Add legacy migration test app
This commit is contained in:
27
test/LegacyTestApp/SquirrelLogger.cs
Normal file
27
test/LegacyTestApp/SquirrelLogger.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LegacyTestApp
|
||||
{
|
||||
internal class SquirrelLogger : Squirrel.SimpleSplat.ILogger
|
||||
{
|
||||
protected SquirrelLogger()
|
||||
{
|
||||
}
|
||||
|
||||
public Squirrel.SimpleSplat.LogLevel Level { get; set; }
|
||||
|
||||
public static void Register()
|
||||
{
|
||||
Squirrel.SimpleSplat.SquirrelLocator.CurrentMutable.Register(() => new SquirrelLogger(), typeof(Squirrel.SimpleSplat.ILogger));
|
||||
}
|
||||
|
||||
public void Write(string message, Squirrel.SimpleSplat.LogLevel logLevel)
|
||||
{
|
||||
Console.WriteLine(message);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user