Skip to main content

PYBLOB LOGGING

Integrate this library on your project to log into both Terminal and Azure Blob Storage.

Implementation

Importing libraries

from PyblobLogging import PyblobLogging
from BlobDescription import BlobDescription
import os
import sys

Initializing Logger

ROOT_DIR = os.path.dirname(sys.modules['__main__'].__file__)

blob_description = BlobDescription(storage_connection_str, container_name, path_inside_container, ROOT_DIR)

# Example:
# blob_description = BlobDescription('DefaultEndpointsProtocol=https;AccountName=xx;AccountKey=xx/xxx/xx;EndpointSuffix=xx','my-container-name', 'directory1/directory2/', ROOT_DIR) 

logger = PyblobLogging.get_blob_logger('My Logger Name', blob_description)

Using functions

# To log errors
ex = Exception('Error')
logger.error('This is an error log :(', ex)

# To log another type of messages
logger.debug('This is a debug log :)')

Metadata

Release files for AzurePyblobLogging 1.1.14

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for AzurePyblobLogging 1.1.14
File Size Uploaded
AzurePyblobLogging-1.1.14.tar.gz 2.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for AzurePyblobLogging 1.1.14
File Interpreter ABI Platform
AzurePyblobLogging-1.1.14-py3-none-any.whl Python 3 none any Details

Total release size: 7.2 kB

Release files / AzurePyblobLogging-1.1.14.tar.gz

Download URL AzurePyblobLogging-1.1.14.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0c261a87f4b63fc632f71472f77b905eb43e498c2d1aa68869a46ce8ce76c880
BLAKE2b-256 checksum
How to use checksums
dd442b32362ebec1d27b4e45d20c436d0a042f958dce95de9cc2572ce3b9a993
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.12

Release files / AzurePyblobLogging-1.1.14-py3-none-any.whl

Download URL AzurePyblobLogging-1.1.14-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
410e5a4794da583235c3285743eb13a250c951a4bbee5c6dfd4355b975cde7bf
BLAKE2b-256 checksum
How to use checksums
74259b351c22c33977f223f3be56abf0a77738fbc76256fbc4d8428673b9d081
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.12

Release history Release notifications | RSS feed

This release

1.1.14 This release

2 release files

1.1.13

2 release files

1.1.12

2 release files

1.1.11

2 release files

1.1.10

2 release files

1.1.9

2 release files

1.1.8

2 release files

1.1.7

2 release files

1.1.6

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

1 release file

1.0.9

1 release file

1.0.8

1 release file

1.0.7

1 release file

1.0.6

1 release file

1.0.5

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page