A database based on .net
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
809 B

// Author: Gockner, Simon
// Created: 2020-02-12
// Copyright(c) 2020 SimonG. All Rights Reserved.
using GBase.Logging.Factories;
using GBase.Logging.Interfaces;
using LightweightIocContainer.Interfaces;
using LightweightIocContainer.Interfaces.Installers;
namespace GBase.Logging.Installers
{
public class LoggingInstaller : IIocInstaller
{
public void Install(IIocContainer container)
{
container.Register<ILog, Log>();
container.Register<IConsoleLogger, ConsoleLogger>();
container.Register<IFileLogger, FileLogger>();
//factories
container.RegisterFactory<ILogFactory>();
container.RegisterFactory<IConsoleLoggerFactory>();
container.RegisterFactory<IFileLoggerFactory>();
}
}
}