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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28de359f755bf9db8c08389fea1c680889649c8dba09fa57d019e2354871c3a0 |
|
MD5 | 7c91be5379b96fba4d8870eb3e168714 |
|
BLAKE2b-256 | f073a4f8a1530e4a3afe1073ca449b4e47e4eb9ca79951983a8941017a888d65 |
Close
Hashes for stackdriver_log_formatter-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b571b60ab0c15e8e1f6e3c1e4a6eda632a9afd33c46d0088143f953ea5bac99d |
|
MD5 | 121e04f4a85ebf23a395e5967ebefcb3 |
|
BLAKE2b-256 | fdd1a8d14e138ff339a21596e1c47c81cbd50f026b486ff26065466ec28b0ea3 |