Elevate application starup errors to be logged as critical #612

This commit is contained in:
John Luo 2016-03-04 14:55:58 -08:00
parent a04dae1b14
commit c6f6066b03
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ namespace Microsoft.AspNetCore.Hosting.Internal
public static void ApplicationError(this ILogger logger, Exception exception)
{
logger.LogError(
logger.LogCritical(
eventId: LoggerEventIds.ApplicationStartupException,
message: "Application startup exception",
exception: exception);