Ejemplo n.º 1
0
            /// <summary>
            /// Provides our own implementation of the services.
            /// </summary>
            /// <param name="pandora">The IoC instance.</param>
            /// <param name="configuration">The dotless configuration.</param>
            protected override void OverrideServices(Pandora.Fluent.FluentRegistration pandora, DotlessConfiguration configuration)
            {
                base.OverrideServices(pandora, configuration);

                if (configuration.Logger == null)
                {
                    // IF no logger defined
                    // THEN we're going to use the Compiler as the logger to stream output out

                    pandora.Service<dotless.Core.Loggers.ILogger>().Instance(Compiler);
                }
            }