Skip to main content

A simple and easy to use library for logging in python

Project description


Logs4theLazy

Easily add logs to your python projects!
View Demo · Report Bug · Request Feature

Table of Contents
  1. Overview
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact

Overview

Logs4theLazy allows you easily add detailed, descriptive, and well-structured logs to your project.

Logs4theLazy allows you to

  • Define custom logging patterns
  • Or you could just use a prebuilt one
  • You can define the structure of your logs with LogFormats
  • You can control where logs go through loggers

(back to top)

Getting Started

To install logs4thelazy, it is recommended to create a virtual environment and just use pip.

>>> python -m venv venv

>>> source venv/bin/activate

>>> pip install l4l

for Mac and Linux

or on Windows

>>> python -m venv venv

>>> source venv\Scripts\Activate.ps1

>>> pip install l4l

Usage

To start using logs4thelazy, you must first have it installed. After you install logs4thelazy, you must import it

import l4l

With logs4thelazy imported, you can use the basic default loggers

# l4l_example.py
import l4l

logger = l4l.BaseLogger(name="logger")

logger.log(l4l.from_value("Hello logging4thelazy world!"), stdout=True)

and then if you run it

>>> python l4l_example.py
logger: List of all logs logged by logger, logger
logger: Hello logging4thelazy world!

(back to top)

Roadmap

  • Create basic working logger
  • Create some extra logger classes that do things such as log to a file, log to a database, format the log, log with a trace-back, etc.
  • Add some documentation

See the open issues for a full list of proposed features (and known issues).

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make logs4thelazy better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE for more information.

(back to top)

Contact

Yosi Frost - yosi_frost@icloud.com

Project Link: [https://github.com/FrostyTheSouthernSnowman/logging4thelazy(https://github.com/FrostyTheSouthernSnowman/logging4thelazy)

(back to top)

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

logs4thelazy-0.0.2.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

logs4thelazy-0.0.2-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file logs4thelazy-0.0.2.tar.gz.

File metadata

  • Download URL: logs4thelazy-0.0.2.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.10

File hashes

Hashes for logs4thelazy-0.0.2.tar.gz
Algorithm Hash digest
SHA256 1514aacbec38a8b539848ca08fab3494d0fc66d50b51d8b9f90e826fe20bec7c
MD5 2c72d8c59ee4678d2a941282746b0d1e
BLAKE2b-256 a1f72fca97191bd742778eb0e0bcdbe659b8fa6fdc2e0479d387b9e465b76e07

See more details on using hashes here.

File details

Details for the file logs4thelazy-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: logs4thelazy-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.10

File hashes

Hashes for logs4thelazy-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c2188f3c21d5c0dedc589f18dc0360b7b06c2e7d65ae403e14c2d1da21ccfaa2
MD5 296dc290a670a48def63e44bec7f994d
BLAKE2b-256 d2c72e68a5f2adafcdd229a22380f3fe1433b3c271c1e750382e4b39547d97e5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page