Skip to main content

A simple logger I made for some projects a year ago.

Project description

SimpleLogger

Description

A simple logger I made for some projects a year ago.

Usage

from simplelogger.logger import Logger  # Import the logger.

log_obj = Logger(  # Create a logger object.
    "Test Logger",  # The name of the logger.
    "logfile.log",  # Where to write the logs.
    loglevel=5  # Set the log level. Capture all types of log.
)

log_obj.info("Sample Information message.")
log_obj.warning("Sample warning message.")
log_obj.error("Sample error message.")
log_obj.debug("Sample debug message.")
log_obj.critical("Sample critical message.")

License

MIT License

Copyright (c) 2020-2022 Chris1320

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

simplelogger-python-0.1.10.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

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

simplelogger_python-0.1.10-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file simplelogger-python-0.1.10.tar.gz.

File metadata

  • Download URL: simplelogger-python-0.1.10.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.4

File hashes

Hashes for simplelogger-python-0.1.10.tar.gz
Algorithm Hash digest
SHA256 eb6e92c2250a9e3575d4ec8729bec07aaeada7ca63d7c3d9badac69902f13b06
MD5 9ff6056fd78772366a2dde7a21a6a9ca
BLAKE2b-256 ada3115e63089d1ada562a5e81fbd1b36d472e1cdf2c3d82deb040e96b57e3b2

See more details on using hashes here.

File details

Details for the file simplelogger_python-0.1.10-py3-none-any.whl.

File metadata

  • Download URL: simplelogger_python-0.1.10-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.4

File hashes

Hashes for simplelogger_python-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 65371970bd44e84eac4c9aa33e2745d878fd8c5355f1d0f7d7e04d8dd8a364e6
MD5 5b7e1416656d0fd69033457ed3744d47
BLAKE2b-256 454c80c904f9eb2d330e123a2c15d0c6ea9ee03ec9db5e87b4343ec074c8a739

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