SciLogger - Python Logging for Science
Project description
SciLogger - Python Logging for Science
- Repository: github.com/otvam/scilogger
- PyPi: pypi.org/project/scilogger
- Conda: anaconda.org/conda-forge/scilogger
Summary
SciLogger is a Python Logging module:
- Specially targeted for scientific applications.
- Use a global timer to measure the elapsed time.
- Provide a class for timing code blocks.
- Definition of custom indentation levels.
- Definition of colors for the logging levels.
SciLogger is using a global INI configuration file:
- First, the default configuration is loaded (
scilogger/scilogger.ini). - Afterward, a custom file can be loaded with an environment variable (
SCILOGGER)
SciLogger is written in Python without any external dependencies.
Warning
- This logging module is based on the Python logging module.
- The philosophy of this logging module is slightly different.
- Mixing both modules can create strange/incorrect behaviors.
Example
An example is located in the example folder of the repository:
run_logger.pycontains an example file for the loggerconfiglogger.inicontains a custom configuration file
# Set the configuration file.
export SCILOGGER="configlocal.ini"
# Run the Python script.
python run_logger.py
Project Links
- Repository: https://github.com/otvam/scilogger
- Releases: https://github.com/otvam/scilogger/releases
- Tags: https://github.com/otvam/scilogger/tags
- Issues: https://github.com/otvam/scilogger/issues
- PyPi: https://pypi.org/project/scilogger
- Conda: https://anaconda.org/conda-forge/scilogger
Author
- Thomas Guillod
- Email: guillod@otvam.ch
- Website: https://otvam.ch
Copyright
(c) 2023 - Thomas Guillod
BSD 2-Clause "Simplified" License
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file scilogger-1.2.1.tar.gz.
File metadata
- Download URL: scilogger-1.2.1.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ede99bf4ee7b959b81223ce8a835a3c29b16bbafe2f3c2eb1341c1b4fe7858b
|
|
| MD5 |
05837ec0cc8eff5c3e598ccdfd35f404
|
|
| BLAKE2b-256 |
817fd3169cc1b6fde4ce9ee930f2cb050d6a4af250e460c8ec24bf25e80bfce4
|
File details
Details for the file scilogger-1.2.1-py3-none-any.whl.
File metadata
- Download URL: scilogger-1.2.1-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f18ca5c05902237752f527391283d86a0b75543c92687f22b42991090eedfa81
|
|
| MD5 |
e15de4e7ac58d2a2bfcf61b6c15bf6bc
|
|
| BLAKE2b-256 |
049745bc2c74cd3be94a800a70f435ffe54962e30fa3fc01d2e559ea29947e2f
|