Skip to main content

No project description provided

Project description

Introduction

Translucent provides a wrapper around the Python logging module, and is ment to be a central place to gather all generic functionality related to logging.

Example

The following is a sample dictConfig to configure translucent’s JSON formatter.

version: 1
handlers:
  console:
    class: logging.StreamHandler
    formatter: json
    level: INFO
    stream: ext://sys.stdout
root:
  level: INFO
handlers: [console]
  loggers:
    urllib3:
      level: INFO
formatters:
  default:
    format: '%(asctime)s %(levelname)-8s %(name)-35s %(message)s'
    datefmt: '%Y-%m-%d %H:%M:%S'
  json:
    (): translucent.formatters.JSON
    namespace: ai
    name: logzio-prototype
disable_existing_loggers: False

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

translucent-0.8.0.tar.gz (3.7 kB view hashes)

Uploaded Source

Supported by

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