This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//ELMAH.IO error Handler: | |
export class ElmahIoApiUrls | |
{ | |
public static CreateMessage(logId: string) | |
{ | |
return "https://elmah.io/api/v2/messages?logId=" + logId; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:elmahio="http://www.nlog-project.org/schemas/NLog.Targets.Elmah.Io.xsd" | |
autoReload="true" | |
internalLogLevel="Warn" | |
internalLogFile="C:\temp\internal-nlog.txt"> | |
<extensions> | |
<add assembly="Elmah.Io.NLog" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) | |
{ | |
loggerFactory.AddElmahIo("API_KEY", new Guid("LOG_ID")); | |
var api = ElmahioAPI.Create("API_KEY"); | |
JavascriptLogging.OnLogging += loggingEventArgs => | |
{ | |
api.Messages.CreateAndNotify(new Guid("LOG_ID"), new CreateMessage | |
{ | |
Title = loggingEventArgs.FinalMessage, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dasdasdas |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "JSON schema ASP.NET Core's appsettings.json file", | |
"$schema": "http://json-schema.org/draft-04/schema#", | |
"type": "object", | |
"definitions": { | |
"webOptimizer": { | |
"type": "object", | |
"description": "Settings for WebOptimizer.Core", | |
"properties": { | |
"enableCaching": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "JSON schema ASP.NET Core's appsettings.json file", | |
"$schema": "http://json-schema.org/draft-04/schema#", | |
"type": "object", | |
"definitions": { | |
"webOptimizer": { | |
"type": "object", | |
"description": "Settings for WebOptimizer.Core", | |
"properties": { | |
"enableCaching": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "JSON schema ASP.NET Core's appsettings.json file", | |
"$schema": "http://json-schema.org/draft-04/schema#", | |
"type": "object", | |
"definitions": { | |
"webOptimizer": { | |
"type": "object", | |
"description": "Settings for WebOptimizer.Core", | |
"properties": { | |
"enableCaching": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
title: "JSON schema ASP.NET Core's appsettings.json file", | |
$schema: "http://json-schema.org/draft-04/schema#", | |
type: "object", | |
definitions: { | |
webOptimizer: { | |
type: "object", | |
description: "Settings for WebOptimizer.Core", | |
properties: { | |
enableCaching: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "JSON schema ASP.NET Core's appsettings.json file", | |
"$schema": "http://json-schema.org/draft-04/schema#", | |
"type": "object", | |
"definitions": { | |
"webOptimizer": { | |
"type": "object", | |
"description": "Settings for WebOptimizer.Core", | |
"properties": { | |
"enableCaching": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "JSON schema ASP.NET Core's appsettings.json file", | |
"$schema": "http://json-schema.org/draft-04/schema#", | |
"type": "object", | |
"definitions": { | |
"webOptimizer": { | |
"type": "object", | |
"description": "Settings for WebOptimizer.Core", | |
"properties": { | |
"enableCaching": { |