Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions nuget.config

This file was deleted.

1 change: 0 additions & 1 deletion seqcli.sln
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "sln", "sln", "{2EA56595-519
appveyor.yml = appveyor.yml
Build.ps1 = Build.ps1
LICENSE = LICENSE
nuget.config = nuget.config
README.md = README.md
EndProjectSection
EndProject
Expand Down
23 changes: 23 additions & 0 deletions src/SeqCli/Attribution/.NET Core License.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
The MIT License (MIT)

Copyright (c) .NET Foundation and Contributors

All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
20 changes: 20 additions & 0 deletions src/SeqCli/Attribution/Json.NET License.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
The MIT License (MIT)

Copyright (c) 2007 James Newton-King

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
14 changes: 14 additions & 0 deletions src/SeqCli/Attribution/System.Reactive License.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Copyright (c) .NET Foundation and Contributors
All Rights Reserved

Licensed under the Apache License, Version 2.0 (the "License"); you
may not use this file except in compliance with the License. You may
obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied. See the License for the specific language governing permissions
and limitations under the License.
4 changes: 3 additions & 1 deletion src/SeqCli/Cli/Features/OutputFormatFeature.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// limitations under the License.

using SeqCli.Config;
using SeqCli.Output;
using Serilog;
using Serilog.Core;
using Serilog.Events;
Expand Down Expand Up @@ -45,7 +46,8 @@ public override void Enable(OptionSet options)
public Logger CreateOutputLogger()
{
var outputConfiguration = new LoggerConfiguration()
.MinimumLevel.Is(LevelAlias.Minimum);
.MinimumLevel.Is(LevelAlias.Minimum)
.Enrich.With<RedundantEventTypeRemovalEnricher>();

if (_json)
outputConfiguration.WriteTo.Console(new CompactJsonFormatter());
Expand Down
27 changes: 27 additions & 0 deletions src/SeqCli/Output/RedundantEventTypeRemovalEnricher.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// Copyright 2018 Datalust Pty Ltd
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

using Serilog.Core;
using Serilog.Events;

namespace SeqCli.Output
{
public class RedundantEventTypeRemovalEnricher : ILogEventEnricher
{
public void Enrich(LogEvent logEvent, ILogEventPropertyFactory propertyFactory)
{
logEvent.RemovePropertyIfPresent("@i");
}
}
}
2 changes: 1 addition & 1 deletion src/SeqCli/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ static async Task<int> Main(string[] args)
Log.Logger = new LoggerConfiguration()
.MinimumLevel.Error()
.WriteTo.Console(
outputTemplate: "{Message:lj}{NewLine}",
outputTemplate: "{Message:lj}{NewLine}{Exception}",
standardErrorFromLevel: LevelAlias.Minimum)
.CreateLogger();

Expand Down
6 changes: 1 addition & 5 deletions src/SeqCli/SeqCli.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@
</PropertyGroup>
<ItemGroup>
<Content Include="..\..\asset\SeqCli-Icon-128px.ico" Link="SeqCli-Icon-128px.ico" />
<Content Include="Attribution\Serilog License.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Attribution\Autofac License.txt">
<Content Include="Attribution\*.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
Expand All @@ -28,7 +25,6 @@
<PackageReference Include="Serilog.Formatting.Compact.Reader" Version="1.0.2" />
<PackageReference Include="Serilog.Sinks.Console" Version="3.0.1" />
<PackageReference Include="Autofac" Version="4.0.0" />
<PackageReference Include="ILLink.Tasks" Version="0.1.4-preview-981901" />
<PackageReference Include="Superpower" Version="1.1.0" />
<PackageReference Include="System.Reactive" Version="3.1.1" />
<PackageReference Include="System.Security.Cryptography.ProtectedData" Version="4.4.0" />
Expand Down