Initial commit
Initial commit til Git. V2 er deployed
This commit is contained in:
19
PointOfSale/Utilities/ESCPOS_NET/Logging/BaseLogger.cs
Normal file
19
PointOfSale/Utilities/ESCPOS_NET/Logging/BaseLogger.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using Microsoft.Extensions.Logging;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ESCPOS_NET
|
||||
{
|
||||
public static class Logging
|
||||
{
|
||||
public static ILogger Logger { get; set; }
|
||||
static Logging()
|
||||
{
|
||||
|
||||
TaskScheduler.UnobservedTaskException += (s, e) =>
|
||||
{
|
||||
//LogUnhandledException(e.Exception, "TaskScheduler.UnobservedTaskException");
|
||||
e.SetObserved();
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user