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.
31 lines
925 B
31 lines
925 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
|
|
{
|
|
/// <summary>
|
|
/// <see cref="IIocInstaller"/> for the logging
|
|
/// </summary>
|
|
public class LoggingInstaller : IIocInstaller
|
|
{
|
|
/// <inheritdoc />
|
|
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>();
|
|
}
|
|
}
|
|
} |