Skip to content

Instantly share code, notes, and snippets.


Blake Niemyjski niemyjski

View GitHub Profile
View gulpfile.js
var gulp = require('gulp'),
gulpif = require('gulp-if'),
less = require('gulp-less'),
autoprefixer = require('gulp-autoprefixer'),
minifycss = require('gulp-minify-css'),
rename = require('gulp-rename'),
clean = require('gulp-clean'),
runSequence = require('run-sequence'),
concat = require('gulp-concat'),
uglify = require('gulp-uglify'),
View gist:e01f64006d7e59a00356
<remove name="ExceptionlessModule"/>
<add name="ExceptionlessModule" type="Exceptionless.Web.ExceptionlessModule, Exceptionless.Web" />
niemyjski / gist:469ccce03dc5b753d522
Created Dec 16, 2014
Exceptionless Log Source Trace Messages
View gist:469ccce03dc5b753d522
internal static readonly TraceSource _traceSource = new TraceSource("MyLogSource");
ExceptionlessTraceListener traceListener = Trace.Listeners.OfType<ExceptionlessTraceListener>().FirstOrDefault();
if (traceListener != null)
<add name="DiskLog" type="System.Diagnostics.TextWriterTraceListener" traceOutputOptions="DateTime" initializeData="MyLog.log" />
View gist:1e630fa2955f5d6dbb04
"title": "Exceptionless",
"services": {
"query": {
"list": {
"0": {
"id": 0,
"color": "#7EB26D",
"alias": "",
"pin": false,
niemyjski / plugin.example.cs
Last active Aug 29, 2015
Exceptionless Plugin Example
View plugin.example.cs
// There are two ways to create an plugin:
public class UniqueUserIdentifierPlugin : IEventPlugin {
public void Run(EventPluginContext context) {
if (!ctx.Client.Configuration.IncludePrivateInformation)
// Only update it if it's not currently set.
var user = context.Event.GetUserIdentity();
if (user != null)
View gist:31b111412ce91d1245b9
"type": "usage",
"source": "Searching",
"tags": [
"geo": "43.595089, -88.444602",
"data": {
"Filter": "tag:GitHub",
niemyjski / gist:620fe74b8aadd7f9ce51
Created Apr 9, 2015
[TEST] Verify an AggregateException's inner exceptions are being reported.
View gist:620fe74b8aadd7f9ce51
using System;
using Exceptionless.Plugins;
namespace Exceptionless.SampleConsole.Plugins {
public class VerifyAggregateException : IEventPlugin {
public void Run(EventPluginContext context) {
if (!context.Event.IsError() || !context.ContextData.HasException())
niemyjski / gist:65bb407f17d210f9639f
Last active Aug 29, 2015
Exceptionless.JavaScript api design
View gist:65bb407f17d210f9639f
// I'm working on the client api for submitting log messages, feature usages and exceptions to
// Please leave a comment with what you like or what you prefer.
// ------ log messages -----
//Considerations: only message param is required.
// I like this as it feels native to js, but I don't like that source is the first,
// when it could be inferred if not set.. You could find yourself doing client.log(null, message) all over..
client.log(source, message, level);