public static ILoggerProvider RegisterStandardLogger(string name, IRegistrar registrar) { var plugin = new ConsoleLoggerPlugin(); var pluginConfiguration = (ConsoleLoggerPluginConfiguration)plugin.Configuration; var properties = new Properties(); properties.SetProperty($"plugin.{name}.defaultLogger", "true"); pluginConfiguration.BuildWith(registrar.World.Configuration, new PluginProperties(name, properties)); plugin.Start(registrar); return(plugin); }
internal static ILoggerProvider StandardLoggerProvider(World world, string name) => ConsoleLoggerPlugin.RegisterStandardLogger(name, world);