mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-09 21:26:04 +00:00
14 lines
363 B
C#
14 lines
363 B
C#
using Microsoft.Extensions.Logging;
|
|
|
|
namespace WelsonJS.Service.Logging
|
|
{
|
|
public static class FileLoggerExtensions
|
|
{
|
|
public static ILoggerFactory AddDirectory(this ILoggerFactory factory, string loggingDirectory)
|
|
{
|
|
factory.AddProvider(new FileLoggerProvider(loggingDirectory));
|
|
return factory;
|
|
}
|
|
}
|
|
}
|