Skip to main content

Simple remote syslog sender

Project description

Simple remote syslog sender

Installing

Install and update using pip:

$ pip install usyslog

usyslog supports Python 2 and newer, Python 3 and newer, and PyPy.

A Simple Example

What does it look like? Here is an example of a simple usyslog program:

from usyslog import syslog

message = "This is an error"

syslog(message, level=LEVEL['error'], facility=FACILITY['daemon'],
    host='localhost', port=514)
    # default host = 'localhost'
    # default port = 514
    # or

    syslog(message, 3, 3, '192.168.0.1')

Support

  • Python 2.7 +, Python 3.x
  • Windows, Linux

Project details


Download files

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

Files for usyslog, version 0.16
Filename, size File type Python version Upload date Hashes
Filename, size usyslog-0.16.tar.gz (4.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page