Skip to main content

An async TCP logging server base on tornado.ioloop, which serve for logging.handlers.SocketHandler.

Project description

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.

Documentation

See LoggerServer Documentation.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

logger_server-1.0.5.tar.gz (10.7 kB view details)

Uploaded Source

File details

Details for the file logger_server-1.0.5.tar.gz.

File metadata

  • Download URL: logger_server-1.0.5.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for logger_server-1.0.5.tar.gz
Algorithm Hash digest
SHA256 d69de092b8838c77053141b49d980feb3f704ca53abfd7073a142fbe11b826b7
MD5 10135b17bbb3d3fa5e47f06579530a51
BLAKE2b-256 8ec0c1cc59ea9ccb54953438d7a40c4ce119ad1713e768d84090d33d5fc3fcd9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page