PM> Install-Package Serilog.Extras.AppSettings
... = new LoggerConfiguration()
public static class LoggerExtensions | |
{ | |
public static ILogger ForHere( | |
this ILogger logger, | |
[CallerFilePath] string sourceFile = null, | |
[CallerLineNumber] int sourceLine = 0) | |
{ | |
return logger | |
.ForContext("SourceFile", sourceFile) | |
.ForContext("SourceLine", sourceLine); |
## -------------------------------------------------------------------------------------- | |
## Configuration | |
## -------------------------------------------------------------------------------------- | |
$ConfirmPreference = "None" | |
$isEnabled = $OctopusParameters["Octopus.Action.IISWebSite.CreateOrUpdateWebSite"] | |
if (!$isEnabled -or ![Bool]::Parse($isEnabled)) | |
{ | |
exit 0 |
<h3>Task summary:</h3> | |
<ol> | |
#{each step in Octopus.Step} | |
<li>#{step.Name | HtmlEscape} — <strong>#{step.Status.Code}</strong> #{step.Status.Error | HtmlEscape} | |
#{if step.Status.ErrorDetail} | |
<pre>#{step.Status.ErrorDetail | HtmlEscape}</pre> | |
#{/if} | |
</li> | |
#{/each} | |
</ol> |
var builder = new ContainerBuilder(); | |
// The thing we want to create haphazardly without ever | |
// disposing it or any of its dependencies: | |
builder.RegisterType<Foo>() | |
.Named<IFoo>("untracked"); | |
// Owned<T> is itself untracked (i.e. disposal is up to the | |
// owner.) Since we just let the Owned<IFoo> slip away, it |
var module = angular.module('octopusApp.projects'); | |
module.controller('ProjectReleaseController', function ($scope, busy, $routeParams, pageTitle, octopusRepository, $q) { | |
var isLoading = $scope.isLoading = busy.create(); | |
var projectId = $routeParams["id"]; | |
var releaseVersion = $routeParams["version"]; | |
var project, release, deploymentProcess; | |
isLoading.promise(octopusRepository.Projects.get(projectId).then(function (project2) { | |
project = project2; |
using Seq.Apps; | |
using Seq.Apps.LogEvents; | |
namespace Seq.BuiltIn.SampleApp | |
{ | |
public class SampleReactor : Reactor, ISubscribeTo<LogEventData> | |
{ | |
public void On(Event<LogEventData> evt) | |
{ | |
if (evt.Data.Level == LogEventLevel.Error) |
using Seq.Apps; | |
using Seq.Apps.LogEvents; | |
using System; | |
using System.Linq; | |
namespace Seq.Sample.SlidingWindows | |
{ | |
/// <summary> | |
/// Counts events in a sliding time window, writing a message back to the | |
/// stream when a set threshold is reached. |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using Serilog.Events; | |
namespace SerilogStructuredDataToolkit | |
{ | |
public abstract class LogEventPropertyValueVisitor<TResult> | |
{ | |
public virtual TResult Visit(LogEventPropertyValue value) |
using System; | |
using System.Linq; | |
using MessageTemplates.Core; | |
using MessageTemplates.Parsing; | |
using MessageTemplates.Structure; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Linq; | |
namespace MessageTemplateRenderer | |
{ |