Skip to content

Commit

Permalink
New storage
Browse files Browse the repository at this point in the history
  • Loading branch information
cschuchardt88 committed Jan 9, 2024
1 parent e9e7a07 commit 325f624
Show file tree
Hide file tree
Showing 16 changed files with 1,735 additions and 134 deletions.
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" />
<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 @@ -18,13 +18,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

0 comments on commit 325f624

Please sign in to comment.