https://github.com/chriswickens/pythonloggingserver
A simple logging server in python
https://github.com/chriswickens/pythonloggingserver
json logging python threaded
Last synced: about 1 month ago
JSON representation
A simple logging server in python
- Host: GitHub
- URL: https://github.com/chriswickens/pythonloggingserver
- Owner: chriswickens
- License: mit
- Created: 2025-02-25T11:53:12.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-06-13T17:35:36.000Z (12 months ago)
- Last Synced: 2025-06-13T18:35:00.432Z (12 months ago)
- Topics: json, logging, python, threaded
- Language: Python
- Homepage:
- Size: 75.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Basic Python Logging Server
This program was used for my Network Application Development course.
It is a logging server that contains a configuration file to edit the settings for the server.
The logs are produced using a JSON output that is intended to be ready by any log viewer that supports a JSON style format.
## The "config.ini" file allows for the following settings to be changed:
- **ServerSettings** : The IP/Port and max supported clients
- **ValidLogs** : The types of logs that it will produce (default will allow a connected client to have logs generated for: TRACE, DEBUG, INFO, WARN, ERROR, FATAL
- **LogFieldArrangment** : How the arrangement of the log details will be produced
- **TIME_STAMP_FORMAT** : Allows for timestamp formatting in the log entry
- **LogsToIgnore** : Log types in this section will be ignored and will not be shown in the log file
- **RateLimiting** :
- **rate_limit_window** - The time window to ignore multiple log requests (more than 1 every X seconds will be ignored)
- **max_requests** - If more than Y logs are received in the rate_limit_window, the client will be rate limited
Please feel free to use this code for any purpose, it is very basic and was an assignment intended to help me learn a language I have not previously worked with and to better understand server logging.