Skip to main content

iot-edge-logger

python version pre-commit Keep a Changelog CI_CD GitHub_Actions package PyPI

This package is a custom log formatter to standardize, collect and analyze logs from IoT Edge Devices in an Azure Log Analytics Workspace.

Official Documentation | Source code | Package PyPI

Table of Contents

Versioning

This repository adheres to Semantic Versioning. It will be maintained through the CHANGELOG.md and in GitHub Releases. It's important to note that you must maintain the version with your releases in iot/edge/logger/_version.py, otherwise a new package version will fail to get published.

Getting Started

This section provides basic examples with the iot-edge-logger.

Prerequisites

  • Python 3.7 or later is required to use this package.

Basic Examples

  1. Install via pip:

    pip install iot-edge-logger
    
  2. Import and say hello:

    from iot.edge.logger import __version__
    
    
    print(f"hello world from iot-edge-logger version: {__version__}")
    
  3. Basic usage:

    from iot.edge.logger import init_logging
    
    # setup logging
    logger = init_logging(module_name="my_iot_module")
    
    
    logger.info("I am alive!")
    logger.warning("Plotting global takeover...")
    logger.error("Humans have become suspicious, shutting down")
    
  4. Log output:

    <6> 2022-08-02 19:04:13,015 [INF] my_iot_module I am alive!
    <4> 2022-08-02 19:04:13,015 [WRN] my_iot_module Plotting global takeover...
    <3> 2022-08-02 19:04:13,015 [ERR] my_iot_module Humans have become suspicious, shutting down
    

Release files for iot-edge-logger 1.0.6

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

Source distribution (sdist)

Source distribution for iot-edge-logger 1.0.6
File Size Uploaded
iot-edge-logger-1.0.6.tar.gz 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for iot-edge-logger 1.0.6
File Interpreter ABI Platform
iot_edge_logger-1.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 8.5 kB

Release files / iot-edge-logger-1.0.6.tar.gz

Download URL iot-edge-logger-1.0.6.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
8438160a5d8d757fe5df901f43f59fa68b0614f56d3438e6f02a4e66bef0a346
BLAKE2b-256 checksum
How to use checksums
3afd3c56d7913c5a74ba5ddede78d7b6bb1ce0d0633637e93c4efc0dea5b5323
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / iot_edge_logger-1.0.6-py3-none-any.whl

Download URL iot_edge_logger-1.0.6-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
30e95e706bee5ec48bbf7b46c872350e788193377ea00fd7d014735de89e1e44
BLAKE2b-256 checksum
How to use checksums
98b2688495630acc0815d120baa407b2db6a41ac067be5f58a7fc294755451b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release history Release notifications | RSS feed

This release

1.0.6 This release

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

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