Pretty modern colored logging library
Project description
🔥 Pyrolog
Pretty logging — Pretty project
Contents
🇺🇦 Made with ❤️ in Ukraine!
Installation
You can install\update by using this command:
$ pip install -U pyrolog
If you want to contribute: just fork, commit you changes and create PR there. Don't forget to comment your changes while contributing!
Basic example
After you installed the library, you can create your first logger:
import pyrolog
# You can use debug, exception, info, warn, error, critical log levels.
# exception - is log level that recommended to use by default, if you don't want to log debug information
logger = pyrolog.get_colored_logger('exception')
x = 12
# loggers supports formatting. With colored loggers it will be pretty colored
logger.info('x is {}', x)
There is only 1% of all the features. See the example below for more features
Most all the features example
There is not all the features. See the docs
📃 License
- Pyrolog library source code is under LGPL-2.1 license.
- Build utilities (utils/ directory) source code is under MIT license.
By copying, distributing and modification this library, you agree with GNU LGPL 2.1 Terms. License is applies to all source files of the library. Is the python files, reStructured files, etc. License also provides NO WARRANTY for this library!
Pyrolog. Pretty logging library
Copyright (C) 2023 ftdot
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
USA
MIT License
Copyright (c) 2023 ftdot (https://github.com/ftdot)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
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
File details
Details for the file pyrolog-2.3.0.tar.gz
.
File metadata
- Download URL: pyrolog-2.3.0.tar.gz
- Upload date:
- Size: 36.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | daa6c0e32d0a94d989ac463358491d8de8f1e7e45da0c0b1247925b1471774ce |
|
MD5 | b3eddef03cb47ad54803ce5076c09df8 |
|
BLAKE2b-256 | 4948d9bb6fe734557157e02bf0ff490ec14a9531b85bac779034a8f25e41b54f |
Provenance
File details
Details for the file pyrolog-2.3.0-py3-none-any.whl
.
File metadata
- Download URL: pyrolog-2.3.0-py3-none-any.whl
- Upload date:
- Size: 37.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa16939314ac1409492b5ec0c90adc3efd5690c8522697682b5b2ae01c21e636 |
|
MD5 | 9866a1af2f0a1189abbcb09f450bc82a |
|
BLAKE2b-256 | 052f60c83a9dc250b76921d878ca542794551e81c35736821c83505e81a3121a |