Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ApplicationLog - New Storage implementation #865

Merged
merged 13 commits into from
Mar 20, 2024
6 changes: 5 additions & 1 deletion src/ApplicationLogs/ApplicationLogs.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<PackageId>Neo.Plugins.ApplicationLogs</PackageId>
<RootNamespace>Neo.Plugins</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\RpcServer\RpcServer.csproj">
<PackageReference Include="Neo.ConsoleService" Version="1.2.0" />
cschuchardt88 marked this conversation as resolved.
Show resolved Hide resolved
<ProjectReference Include="..\RpcServer\RpcServer.csproj" AdditionalProperties="IncludeSettingsFileOutput=False">
<Private>false</Private>
<ExcludeAssets>runtime</ExcludeAssets>
</ProjectReference>
Expand Down
481 changes: 358 additions & 123 deletions src/ApplicationLogs/LogReader.cs

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/ApplicationLogs/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,16 @@ internal class Settings
public uint Network { get; }
public int MaxStackSize { get; }

public bool Debug { get; }

public static Settings Default { get; private set; }

private Settings(IConfigurationSection section)
{
this.Path = section.GetValue("Path", "ApplicationLogs_{0}");
this.Network = section.GetValue("Network", 5195086u);
this.MaxStackSize = section.GetValue("MaxStackSize", (int)ushort.MaxValue);
this.Debug = section.GetValue("Debug", false);
}

public static void Load(IConfigurationSection section)
Expand Down
Loading