Skip to main content

"Advanced logger inspired by other languages' standard logging classes (e.g. Java and Kotlin)."

Project description

PyAdvancedLogger

Advanced logger inspired by other languages' standard logging classes (e.g. Java and Kotlin).

Installation

Simply install through pip install advlog.

Example

from advlog import Logger

logger = Logger(logfile='./log.txt')

# Passes varargs on to `print`
# These methods exist: d (debug), v (verbose), i (info), w (warning), e (error), f (fatal)
# Can specify `file` kwarg to write to - next to logfile. d, v, i, w methods default to `sys.stdout`; e, f default to `sys.stderr`.
# Can also specify `None` to only write to `logfile`. One of log file or file keyword must be present.
logger.d('debug', 42)

License

MIT License

Copyright (c) 2020 Kiruse

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

advlog-1.0.8.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

advlog-1.0.8-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file advlog-1.0.8.tar.gz.

File metadata

  • Download URL: advlog-1.0.8.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1

File hashes

Hashes for advlog-1.0.8.tar.gz
Algorithm Hash digest
SHA256 9a161f41a354982a988729b8ca6c778fa8499eb64746ee3661717ef9ccc9a357
MD5 ecc4427d1418b763be2aead754e9602c
BLAKE2b-256 2a3fe8991eefdf10a85f8ef804cac248a8f4a23f91ff5447fc308047436e30ab

See more details on using hashes here.

File details

Details for the file advlog-1.0.8-py3-none-any.whl.

File metadata

  • Download URL: advlog-1.0.8-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1

File hashes

Hashes for advlog-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 914afbf0b264c8534f3b8440dcaef2a66f22512f29a7b4e65c2f506668c6538d
MD5 26fe16fde6f4c5647c1d77bc70a046d4
BLAKE2b-256 13059ba7ddb6a263870b725dd734e4111ddbda8d4150f482fcd20b9e46744d3c

See more details on using hashes here.

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