SysLogHandler output pin

Following the tips , I plan to register errors from several critical processes (clients) on one registration process (server). SysLogHandler seems to be the right choice, since it uses UDP (rather, system agnostic) and does not wait for confirmation, and since I use localhost , there should be practically no loss of logs.

However, it is unclear how I should implement the server side on two accounts:

  • Should I just open multiprocessing.connection and conn.recv() log as text?
  • Is there a way to handle this error as a server side log by printing it using another logging.handlers ? Or is it just lines at this moment?

A good use case would be when critical processes send errors to the logging process, which in turn will use SMTPHandler to send these errors by email ...

+1
source share
1 answer

Well, to continue with the tips (;)), take a look at rsyslog , this is the most powerful syslog server that I know, It supports multi-threaded logging, bulk upload and mail sending .

+2
source

Source: https://habr.com/ru/post/1387391/


All Articles