https://github.com/lifeomic/logging-py
Python logging library
https://github.com/lifeomic/logging-py
logging python
Last synced: 5 months ago
JSON representation
Python logging library
- Host: GitHub
- URL: https://github.com/lifeomic/logging-py
- Owner: lifeomic
- License: mit
- Created: 2020-01-03T17:09:38.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-11T16:22:46.000Z (over 1 year ago)
- Last Synced: 2025-06-05T07:03:04.204Z (about 1 year ago)
- Topics: logging, python
- Language: Python
- Size: 44.9 KB
- Stars: 0
- Watchers: 22
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# LifeOmic Python Logging
## Project Status




## Getting Started
### Dependencies
- [Python 3](https://www.python.org/download/releases/3.0/) version >= 3.6 and <= 3.9.25
(contributions welcome to bring this up to 3.13+)
### Getting the Source
This project is [hosted on GitHub](https://github.com/lifeomic/logging-py). You
can clone this project directly using this command:
```bash
git clone git@github.com:lifeomic/logging-py.git
```
### Development
Python environments are managed using
[virtualenv](https://virtualenv.pypa.io/en/latest/). Be sure to have this
installed first `pip install virtualenv`. The makefile will setup the
environment for the targets listed below.
#### Running tests
```bash
make test
```
#### Linting
```bash
make lint
```
### Installation
```bash
pip3 install lifeomic_logging
```
### Usage
```python
from lifeomic_logging import scoped_logger
with scoped_logger(__name__, { "bar": "foo" }) as log:
log.info("message")
```
## Release Process
[Releases](https://github.com/lifeomic/logging-py/releases) are generally
created with each merged PR. Packages for each release are published to
[PyPi](https://pypi.org/project/phc/). See [CHANGELOG.md](CHANGELOG.md) for
release notes.
To release a new version of the package, update the version number in
`lifeomic_logging/version.py` as a part of your change, and the new version will
be released automatically to PyPi on merge.
### Versioning
This project uses [Semantic Versioning](http://semver.org/).
## Contributing
We encourage public contributions! Please review
[CONTRIBUTING.md](CONTRIBUTING.md) and [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md)
for details on our code of conduct and development process.
## License
This project is licensed under the MIT License - see [LICENSE](LICENSE) file for
details.
## Authors
See the list of [contributors](https://github.com/lifeomic/cli/contributors) who
participate in this project.