Skip to main content

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/*
```


Project details


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

spacemakerlog-0.2.0-py2.py3-none-any.whl (2.7 kB view hashes)

Uploaded Python 2 Python 3

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