19 lines
542 B
C#
19 lines
542 B
C#
using DigitalData.Modules.Logging;
|
|
|
|
namespace ECM.JobRunner.Web.Data
|
|
{
|
|
public class LoggingService
|
|
{
|
|
public LogConfig LogConfig { get; set; }
|
|
|
|
public LoggingService(IConfiguration Config)
|
|
{
|
|
LogConfig = new LogConfig(LogConfig.PathType.CustomPath, Config["Config:LogPath"], null, "Digital Data", "ECM.JobRunner.Web")
|
|
{
|
|
Debug = bool.Parse(Config["Config:LogDebug"]),
|
|
EnableJsonLog = bool.Parse(Config["Config:LogJson"])
|
|
};
|
|
}
|
|
}
|
|
}
|