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.2.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

advlog-1.0.2-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: advlog-1.0.2.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.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0

File hashes

Hashes for advlog-1.0.2.tar.gz
Algorithm Hash digest
SHA256 80ceb5fb4718e233e4c8d8ff8ed75ef5facda298630d331f7fea07a7e72fa7c1
MD5 00514a7d57186670a999fe215ed8b163
BLAKE2b-256 3307d4622d6efcb7c82e8ff20bc91fa0e7a3b4a858a91e968eea15def297ee82

See more details on using hashes here.

File details

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

File metadata

  • Download URL: advlog-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0

File hashes

Hashes for advlog-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 feff6b445db882ae822f66f901ddd6087bef68847c1d4236a46f5822fc5b1833
MD5 679363dce92001b06eb8870f9ef60597
BLAKE2b-256 38ddffb50d07336f38241051fe7380bd2508965c92f2cb3e01e79154500f1a98

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