[BIG]
* Logs moins verbeux, + support config env var ASPNET_LOG_LEVEL * [REFACT/FS] Valid chars + [FIX] inclut maintenant le tiret (`-`) et `=` * scripts de déployement : timings des `sleep` plus sûrs * [HAIRCUT] les commandes de teintes (de la part du client) * index admin des coiffeurs * Maj de ma Home page * Mise en forme * [FIX] suppression de la reference externe aux scripts de ajax.aspnetcdn.com, pour un chargement sans Internet des pages.
This commit is contained in:
parent
75d5f52e9a
commit
0b38365cec
18 changed files with 109 additions and 53 deletions
|
|
@ -22,13 +22,13 @@ using Microsoft.Extensions.Logging;
|
|||
using Microsoft.Extensions.OptionsModel;
|
||||
using Microsoft.Extensions.PlatformAbstractions;
|
||||
using Microsoft.Net.Http.Headers;
|
||||
using Yavsc.Formatters;
|
||||
using Yavsc.Models;
|
||||
using Yavsc.Services;
|
||||
using Yavsc.ViewModels.Auth.Handlers;
|
||||
|
||||
namespace Yavsc
|
||||
{
|
||||
using Formatters;
|
||||
using Models;
|
||||
using Services;
|
||||
using ViewModels.Auth.Handlers;
|
||||
public partial class Startup
|
||||
{
|
||||
public static string ConnectionString { get; private set; }
|
||||
|
|
@ -261,7 +261,24 @@ namespace Yavsc
|
|||
|
||||
if (env.IsDevelopment())
|
||||
{
|
||||
loggerFactory.MinimumLevel = LogLevel.Verbose;
|
||||
var logenvvar = Environment.GetEnvironmentVariable("ASPNET_LOG_LEVEL");
|
||||
if (logenvvar!=null)
|
||||
switch (logenvvar) {
|
||||
case "info":
|
||||
loggerFactory.MinimumLevel = LogLevel.Information;
|
||||
break;
|
||||
case "warn":
|
||||
loggerFactory.MinimumLevel = LogLevel.Warning;
|
||||
break;
|
||||
case "err":
|
||||
loggerFactory.MinimumLevel = LogLevel.Error;
|
||||
break;
|
||||
default:
|
||||
loggerFactory.MinimumLevel = LogLevel.Information;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
app.UseDeveloperExceptionPage();
|
||||
app.UseRuntimeInfoPage();
|
||||
var epo = new ErrorPageOptions();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue