Sorry misread your post.
Yeah you can call it after UseServiceStack()
, e.g:
public class Startup : ModularStartup
{
public Startup(IConfiguration configuration) : base(configuration) {}
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
app.UseServiceStack(new AppHost {
AppSettings = new NetCoreAppSettings(Configuration)
});
var logFactory = app.ApplicationServices.GetService<ILoggerFactory>();
OrmLiteConfig.ResetLogFactory(new NetCoreLogFactory(logFactory));
}
}