Structured logging for Spacemaker AI
Project description
# log
Python library/client for structured log output
```bash
pip install spacemakerlog
```
```python
from spacemakerlog import log
log.debug("hello something happened", some_key="with some value", another_key=123.12)
log.warn("hello something %s", "happened", some_key="with some value", another_key=123.12)
```
Set log format to "text":
```python
log.set_format("text");
```
Set log level to "info":
```python
log.set_level("info");
```
## Publish
```bash
brew install twine
```
```bash
python setup.py bdist_wheel
twine upload dist/*
```
Python library/client for structured log output
```bash
pip install spacemakerlog
```
```python
from spacemakerlog import log
log.debug("hello something happened", some_key="with some value", another_key=123.12)
log.warn("hello something %s", "happened", some_key="with some value", another_key=123.12)
```
Set log format to "text":
```python
log.set_format("text");
```
Set log level to "info":
```python
log.set_level("info");
```
## Publish
```bash
brew install twine
```
```bash
python setup.py bdist_wheel
twine upload dist/*
```
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for spacemakerlog-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01a86c4efd9490aee521d27a540618aba4f13233b5c0626e97d5fc3dd158de69 |
|
MD5 | c94adb26946d4bd667efd3aafaf1e650 |
|
BLAKE2b-256 | 5ebef61eca79d14dce200a96e7a53ddd3509fcf5fa2068f779be71033c56d1ee |