Skip to content

Commit

Permalink
Merge pull request #21 from LanceMcCarthy/main
Browse files Browse the repository at this point in the history
Logging Investigation
  • Loading branch information
LanceMcCarthy authored May 10, 2024
2 parents 39bb5df + 567fad8 commit 54c6095
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
4 changes: 3 additions & 1 deletion DevCraftAspire.ApiService/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@
app.MapDefaultEndpoints();

// For REST service errors
System.Diagnostics.Trace.Listeners.Add(new System.Diagnostics.TextWriterTraceListener(File.CreateText("_traceoutput.log")));
var logFilePath = "_traceoutput.log";
File.SetUnixFileMode(logFilePath, UnixFileMode.UserRead | UnixFileMode.UserWrite);
System.Diagnostics.Trace.Listeners.Add(new System.Diagnostics.TextWriterTraceListener(File.CreateText(logFilePath)));
System.Diagnostics.Trace.AutoFlush = true;

app.Run();
18 changes: 15 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# DevCraftAspire
A set of projects that test various Telerik and Kendo components in .NET Aspire
A set of projects that test various Telerik and Kendo components in .NET Aspire!

## CI-CD Status

| Branch | Status |
|----------|--------|
Expand All @@ -8,10 +10,20 @@ A set of projects that test various Telerik and Kendo components in .NET Aspire
| `main` | [![xx](https://github.com/LanceMcCarthy/DevCraftAspire/actions/workflows/monitor-images.yml/badge.svg)](https://github.com/LanceMcCarthy/DevCraftAspire/actions/workflows/monitor-images.yml) |
| `main` | [![xx](https://github.com/LanceMcCarthy/DevCraftAspire/actions/workflows/update-images.yml/badge.svg)](https://github.com/LanceMcCarthy/DevCraftAspire/actions/workflows/update-images.yml) |

## Visual Studio 2022 - .NET Aspire Solution
## Azure Deployment Links

- App => https://webfrontend.purpledune-16458cf6.eastus2.azurecontainerapps.io/
- ApiService => https://apiservice.purpledune-16458cf6.eastus2.azurecontainerapps.io/reports/formats

> [!IMPORTANT]
> The ApiService container uses a custom base image with all the required Linux dependencies pre-installed ([ghcr.io/lancemccarthy/aspirebase](https://github.com/LanceMcCarthy/DevCraftAspire/pkgs/container/aspirebase)). It is defined by [this Dockerfile](https://github.com/LanceMcCarthy/DevCraftAspire/blob/main/.dockerbuilds/baseimage/Dockerfile) and published by the `update-images.yaml` workflow.
## Screenshots

### Visual Studio 2022 - .NET Aspire Solution

![image](https://github.com/LanceMcCarthy/DevCraftAspire/assets/3520532/03318693-d973-4ba3-ae0b-15a53e4d56ce)

## Runtime
### Local Deployment

![image](https://github.com/LanceMcCarthy/DevCraftAspire/assets/3520532/b83e9abb-8321-4710-83c2-c8c25e46f9b8)

0 comments on commit 54c6095

Please sign in to comment.