A library to log into blob storage in Azure
Project description
PYBLOB LOGGING
Integrate this library on your project to log into Azure Blob Storage.
Implementation
from PyblobLogging import PyblobLogging
from BlobDescription import BlobDescription
import os
import sys
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)
# 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 :)')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for AzurePyblobLogging-1.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1cff9e8e77a8575d25be916a238826f3dc4e24307eddda774d742c09a0ae537 |
|
MD5 | 20f2a019358359d7bb3ea6865a283238 |
|
BLAKE2b-256 | c3b0b4af8d4cb800fdf1b577e0f9212c16bbfb35079dd9d21c65ccf816901fa8 |