https://github.com/kehr/loggerserver
An async TCP logging server base on tornado.ioloop, which serve for logging.handlers.SocketHandler.
https://github.com/kehr/loggerserver
ioloop logging logging-server tcpserver
Last synced: about 2 months ago
JSON representation
An async TCP logging server base on tornado.ioloop, which serve for logging.handlers.SocketHandler.
- Host: GitHub
- URL: https://github.com/kehr/loggerserver
- Owner: kehr
- License: apache-2.0
- Created: 2017-11-15T09:29:00.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-02T09:45:20.000Z (over 8 years ago)
- Last Synced: 2025-12-08T18:25:02.428Z (6 months ago)
- Topics: ioloop, logging, logging-server, tcpserver
- Language: Python
- Homepage: http://loggerserver.readthedocs.io/
- Size: 25.4 KB
- Stars: 21
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.txt
Awesome Lists containing this project
README
LoggerServer
============
An async TCP logging server base on tornado.ioloop, which serve for logging.handlers.SocketHandler.
Introduce
---------
To solve `Python separate processes logging to same file `_.
Official description::
Although logging is thread-safe, and logging to a single file from multiple threads in a single process is supported,
logging to a single file from multiple processes is not supported, because there is no standard way to serialize access
to a single file across multiple processes in Python. If you need to log to a single file from multiple processes, one
way of doing this is to have all the processes log to a SocketHandler, and have a separate process which implements a
socket server which reads from the socket and logs to file.
Reference: `logging cookbook `_
``LoggerServer`` use ``tornado`` build a high-performance TCP logging server to slove this problem.
Installl
-------------
Install `LoggerServer` by `pip`
.. code-block:: shell
pip install logger_server
Documentation
-------------
See `LoggerServer Documentation `_.