-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
171 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
using System; | ||
|
||
namespace FcomClient.Diagnostics | ||
{ | ||
class Logger | ||
{ | ||
/// <summary> | ||
/// Name of the log file. | ||
/// </summary> | ||
private string Filename = "log.txt"; | ||
|
||
/// <summary> | ||
/// Default constructor. Saves all log messages to "log.txt". | ||
/// </summary> | ||
public Logger() | ||
{ | ||
|
||
} | ||
|
||
/// <summary> | ||
/// Constructor for saving all log messages to a specific file. | ||
/// </summary> | ||
/// <param name="Filename">Name of file to save to</param> | ||
public Logger(string Filename) | ||
{ | ||
this.Filename = Filename; | ||
} | ||
|
||
/// <summary> | ||
/// Saves a log message to the specified file. | ||
/// The timestamp is automatically appended to the front of the message. | ||
/// </summary> | ||
/// <param name="msg"></param> | ||
public void Log(string msg) | ||
{ | ||
// YYYY-MM-DD hh:mm:ssZ | ||
DateTime timestamp = DateTime.UtcNow; | ||
string logMessage = String.Format("{0}: {1}", timestamp.ToString("u"), msg); | ||
System.IO.File.AppendAllLines(Filename, new string[] { logMessage }); | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 1 addition & 5 deletions
6
FcomClient/FcomClient.Serialization/ApiObjects/ForwardedMessage.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
FcomClient/FcomClient.Serialization/ApiObjects/ServerRegistration.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System.Reflection; | ||
using System.Runtime.CompilerServices; | ||
using System.Runtime.InteropServices; | ||
|
||
// General Information about an assembly is controlled through the following | ||
// set of attributes. Change these attribute values to modify the information | ||
// associated with an assembly. | ||
[assembly: AssemblyTitle("FcomClient")] | ||
[assembly: AssemblyDescription("")] | ||
[assembly: AssemblyConfiguration("")] | ||
[assembly: AssemblyCompany("")] | ||
[assembly: AssemblyProduct("FcomClient")] | ||
[assembly: AssemblyCopyright("Noris Ng")] | ||
[assembly: AssemblyTrademark("")] | ||
[assembly: AssemblyCulture("")] | ||
|
||
// Setting ComVisible to false makes the types in this assembly not visible | ||
// to COM components. If you need to access a type in this assembly from | ||
// COM, set the ComVisible attribute to true on that type. | ||
[assembly: ComVisible(false)] | ||
|
||
// The following GUID is for the ID of the typelib if this project is exposed to COM | ||
[assembly: Guid("045d79bf-2195-4f88-9802-a9fa28fb0f9f")] | ||
|
||
// Version information for an assembly consists of the following four values: | ||
// | ||
// Major Version | ||
// Minor Version | ||
// Build Number | ||
// Revision | ||
// | ||
// You can specify all the values or you can default the Build and Revision Numbers | ||
// by using the '*' as shown below: | ||
// [assembly: AssemblyVersion("1.0.*")] | ||
[assembly: AssemblyVersion("0.8")] | ||
[assembly: AssemblyFileVersion("0.8.0")] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,21 @@ | ||
# FCOM client # | ||
|
||
The client that capture messages received over VATSIM / IVAO | ||
The client that capture messages received over VATSIM / IVAO | ||
|
||
|
||
|
||
## Requirements ## | ||
|
||
* Windows 7 or newer | ||
* .NET Framework 4.7.1 or newer | ||
* [WinPcap](https://www.winpcap.org/) | ||
|
||
|
||
|
||
## Download and installation ## | ||
|
||
See the [Releases page on GitHub](https://github.com/norrisng/FcomClient/releases) for downloads. | ||
|
||
To install, simply extract the FcomClient folder to anywhere as desired. | ||
|
||
To run FcomClient, simply open `FcomClient.exe`. |