mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
* Pattern match to IConfigurationRoot and reload. * Update documentation. * AgentHubConnection and logger updates. Trying to deprecate static Logger. * Update build.yml * Update build.yml
26 lines
571 B
C#
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);
|
|
}
|
|
}
|
|
}
|