Skip to main content

Pretty modern colored logging library

Project description

🔥 Pyrolog WIP

Pretty logging — Pretty project


Issues Latest release PyPI PyPI - Downloads Documentation


Contents

Installation

Basic example

Most all the features

License


🇺🇦 Made with ❤️ in Ukraine!

Installation

You can install\update by using this command:

$ pip install -U pyrolog

Warning

Beta version doesn't guarantee correct work. You can report any issue there.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyrolog-2.2.1.tar.gz (36.8 kB view hashes)

Uploaded Source

Built Distribution

pyrolog-2.2.1-py3-none-any.whl (37.3 kB view hashes)

Uploaded 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