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
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
<?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
//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
// Test | |
function logErrorElmahIO($logID, $title, $application, $critical = '0', $detail = '', $user = '') { | |
$ch = curl_init(); | |
if ($critical == '1') { | |
$criticalStatus = "500"; | |
} else { | |
$criticalStatus = "100"; | |
} |
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
using System; | |
using Android.App; | |
using Android.Content.PM; | |
using Android.Runtime; | |
using Elmah.Io.Client; | |
using Elmah.Io.Client.Models; | |
namespace App5 | |
{ | |
[Application] |
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
I was looking how to pin Git Shell to the taskbar, | |
I got this answer from Github support (hope it can help other people) : | |
Hi Fabien, | |
Windows is annoying in that it doesn't let you pin certain items to the taskbar. | |
However, there is a clever way to trick it into allowing you to do this. | |
1) Right-click on the 'Git Shell' shortcut, click Properties and go to the 'Target' text box | |
2) Add the word 'explorer' in front of the line |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Microsoft.ServiceBus.Messaging; | |
using Microsoft.WindowsAzure; | |
namespace AzureElasticsearchConsumer |
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
using System.Threading; | |
using Microsoft.ServiceBus.Messaging; | |
using Microsoft.WindowsAzure; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; |
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
try | |
{ | |
Program.DoSomeHttpRequest(); | |
return; | |
} | |
catch | |
{ | |
Console.WriteLine("Generic Error"); | |
return; | |
} |