Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Commit

Permalink
A simple readme
Browse files Browse the repository at this point in the history
  • Loading branch information
fearlessfrog committed May 28, 2024
1 parent 224645e commit 1729024
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 4 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 David
Copyright (c) 2024 fearlessfrog

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 3 additions & 1 deletion Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
builder.Services.AddSingleton<FileWatcherService>(provider =>
{
var userProfilePath = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
var filePath = Path.Combine(userProfilePath, "AppData", "LocalLow", "Skirmish Mode Games, Inc", "BeyondATC", "Player.log");
var defaultFilePath = Path.Combine(userProfilePath, "AppData", "LocalLow", "Skirmish Mode Games, Inc", "BeyondATC", "Player.log");
var logFileLocationPath = Path.Combine(userProfilePath, "logfile_location.txt");
var filePath = File.Exists(logFileLocationPath) ? File.ReadAllText(logFileLocationPath) : defaultFilePath;
var lastLineFilePath = Path.Combine(Path.GetTempPath(), "lastline.txt");
return new FileWatcherService(filePath, lastLineFilePath, true);
});
Expand Down
47 changes: 45 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,48 @@
# ATC Log Watcher

Simple companion app for MSFS Toolbar ATC Log Viewer
![MSFS ATC Log Watcher](https://i.imgur.com/mI7TMuu.jpeg)

See filter.txt for filtered out entries.
Simple companion app for [MSFS Toolbar ATC Log Viewer](https://github.com/fearlessfrog/msfs2020-toolbar-atclogviewer)

## Features

Temporary solution to supply ATC log entries in real time as they are written to the log file. For use with the MSFS Toolbar ATC Log Viewer.

## Overview

```
┌──────────────────┐ ┌──────────────────────┐
│ │ │ │
│ A Log File │ │ MSFS Toolbar │
│ │ │ │
└────────┬─────────┘ └──────────▲───────────┘
│ │
│ │
┌────────▼─────────┐ ┌──────────┴───────────┐
│ │ │ │
│ ATC Log Watcher ├────────────────► ATC Log Viewer │
│ │ │ │
└──────────────────┘ └──────────────────────┘
```

## Usage

See filter.txt for filtered out entries.
Use ATCLogWatcher.exe to run the app.
Requires .NET 7.0 runtime, which you probably already have.

## Installation

Place the extracted release zip contents into your MSFS Community folder location. If you're not sure what or where that is then this might not be the temporary solution for you.

## License

MIT License, no warranty, use at your own risk. See [License](https://github.com/fearlessfrog/AtcLogWatcher/blob/main/LICENSE) for details.

## Build

Install the .NET 7.0 SDK.
Use `dotrun run` or see `publish.cmd` for release building.
For ATC Log Viewer toolbar, see `build.bat`, requires MSFS SDK installed.

Copyright (c) 2024 fearlessfrog

0 comments on commit 1729024

Please sign in to comment.