Remotely/Shared/Services/FileLoggerProvider.cs
Jared Goodwin 85bc735620
IConfiguration reload in Docker. (#548)
* Pattern match to IConfigurationRoot and reload.

* Update documentation.

* AgentHubConnection and logger updates.  Trying to deprecate static Logger.

* Update build.yml

* Update build.yml
2023-01-01 15:20:03 -08:00

26 lines
571 B
C#

using Microsoft.Extensions.Logging;
using System;
namespace Remotely.Shared.Services
{
public class FileLoggerProvider : ILoggerProvider
{
private readonly string _applicationName;
public FileLoggerProvider(string applicationName)
{
_applicationName = applicationName;
}
public ILogger CreateLogger(string categoryName)
{
return new FileLogger(_applicationName, categoryName);
}
public void Dispose()
{
GC.SuppressFinalize(this);
}
}
}