title: Why asp.net core logging everything?
body: <p>I have creted my first asp.net core 3.0 application. And setup.cs file with serilog file extension  like following:</p>
  
  <pre><code>   public class Startup
      {
          public Startup(IConfiguration configuration)
          {
              Configuration = configuration;
          }
          public IConfiguration Configuration { get; }
  
          public void ConfigureServices(IServiceCollection services)
          {
              services.AddControllers();
          }
          public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILoggerFactory loggerFactory)
          {
              if (env.IsDevelopment())
              {
                  app.UseDeveloperExceptionPage();
              }
  
              loggerFactory.AddFile("logs/ts-{Date}.txt");
              ....
  </code></pre>
  
  <p>And appsettings.json is:</p>
  
  <pre><code>{
    "Logging": {
      "LogLevel": {
        "Default": "Information",
        "Microsoft": "Warning",
        "Microsoft.Hosting.Lifetime": "Information"
      }
    },
    "AllowedHosts": "*"
  }
  </code></pre>
  
  <p>But this logs so many information while application running. But I want to save only my log calls in controller actions or anywhere else:</p>
  
  <pre><code> public class WeatherForecastController : ControllerBase
   {
      private readonly ILogger&lt;WeatherForecastController&gt; _logger;
  
      public WeatherForecastController(ILogger&lt;WeatherForecastController&gt; logger)
      {
          _logger = logger;
      }
  
      [HttpGet]
      public IEnumerable&lt;WeatherForecast&gt; Get()
      {
         _logger.LogInformation("oops");
         ....
      }
   }
  </code></pre>