Python log formatter for Google Stackdriver Logging
Project description
python-stackdriver-log-formatter
Python log formatter for Google Stackdriver Logging.
Usage
>>> # setup
>>> import logging, sys
>>> from stackdriver_log_formatter import StackdriverLogFormatter
>>> logging.basicConfig(level=logging.INFO, stream=sys.stdout)
>>> logging.root.handlers[0].setFormatter(StackdriverLogFormatter())
>>> # logging
>>> logger = logging.getLogger(__name__)
>>> logger.info('Hello world')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for stackdriver-log-formatter-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f49ce408e87f1852836d3519a5e4ef95c42f06e21afc2727a9066b5fd7c82395 |
|
MD5 | 8cdff2dc054dbdabf313c5c00a82b001 |
|
BLAKE2b-256 | 3719563389185cc4a65c14052500cb93003b07f5c1d45bb2b71b49d14545d391 |
Close
Hashes for stackdriver_log_formatter-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4fad8e71f7ae0b5d854d7a2d19ab2ec91067280dc479db04b1b9c4cef8ad389 |
|
MD5 | e5648006ca2d19811a9bcd1bc0bd1202 |
|
BLAKE2b-256 | 5f2b2ecf20e4774452caf89a1383f63b7043558fe7005884fd5f2d076e5b5c00 |