This project is a .NET worker service that checks the status of a website at regular intervals and logs the status to a file.
The WebsiteStatus
project contains a worker service that periodically sends an HTTP request to a specified website and logs whether the website is up or down. It uses Serilog for logging and is designed to run as a background service.
- Uses HttpClient to check the status of a website.
- Logs the website status to a file using Serilog.
- Built using .NET.
To use this project:
- Clone this repository.
- Update the
Worker.cs
file in theWebsiteStatus
project to specify the website you want to check. - Build and run the project.
- Check the log file for the status of the website.
To run the project:
- Make sure you have .NET SDK installed.
- Open the solution in your preferred IDE (Visual Studio, Visual Studio Code, etc.).
- Update the website URL in the
Worker.cs
file to the desired URL. - Build and run the project.
- .NET SDK
- Serilog
- HttpClient
Contributions are welcome! Feel free to fork this repository and submit pull requests.
This project is licensed under the MIT License.