Skip to content

Commit 52af372

Browse files
committed
fix: Critical log level to Fatal
1 parent 299b678 commit 52af372

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/Serilog.Ui.Web/Serilog.Ui.Web.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,24 @@
1010
</ItemGroup>
1111

1212
<ItemGroup>
13-
<EmbeddedResource Include="wwwroot/dist/**/*" />
13+
<EmbeddedResource Include="wwwroot/dist/**/*" CopyToOutputDirectory="Always" />
1414
</ItemGroup>
1515

1616
<ItemGroup>
1717
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
1818
</ItemGroup>
1919

20-
<Target Name="NpmInstall" Inputs="package.json" Outputs="node_modules/.install-stamp">
20+
<!-- <Target Name="NpmInstall" Inputs="package.json" Outputs="node_modules/.install-stamp">
2121
<PropertyGroup>
2222
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
2323
</PropertyGroup>
2424
2525
<Exec Command="npm ci" Condition="$(RestorePackagesWithLockFile) == 'true'" />
2626
<Exec Command="npm install" Condition="$(RestorePackagesWithLockFile) != 'true'" />
2727
<Touch Files="node_modules/.install-stamp" AlwaysCreate="true" />
28-
</Target>
28+
</Target> -->
2929

30-
<Target Name="NpmRunBuild" DependsOnTargets="NpmInstall" BeforeTargets="BeforeBuild">
30+
<Target Name="NpmRunBuild" BeforeTargets="BeforeBuild">
3131
<Exec Command="npm run build" />
3232
</Target>
3333

src/Serilog.Ui.Web/assets/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ <h5 class="modal-title" id="loginModalLabel">JWT Authorizations</h5>
9898
<option value="Information">Information</option>
9999
<option value="Warning">Warning</option>
100100
<option value="Error">Error</option>
101-
<option value="Critical">Critical (!)</option>
101+
<option value="Fatal">Critical (!)</option>
102102
</select>
103103
</label>
104104
</div>

src/Serilog.Ui.Web/assets/script/util.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ export const getBgLogLevel = (logLevel: LogLevel) => {
4848
case LogLevel.Warning:
4949
return 'bg-warning';
5050
case LogLevel.Error:
51-
case LogLevel.Critical:
51+
case LogLevel.Fatal:
5252
return 'bg-danger';
5353
default:
54-
return 'bg-light';
54+
return 'bg-secondary';
5555
}
5656
};

src/Serilog.Ui.Web/assets/types/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export enum LogLevel {
2828
Information = "Information",
2929
Warning = "Warning",
3030
Error = "Error",
31-
Critical = "Critical"
31+
Fatal = "Fatal"
3232
}
3333

3434
export enum LogType {

0 commit comments

Comments
 (0)