Skip to main content

                        SAS Python Logger Handler


                                Jan 2023
                        Alfredo Lorie Bernardo				

                             version 0.2.0

Introduction

The SASHandler allows to send python logging streams to SAS System logger when using the SAS PROC PYTHON.

The SAS PROC PYTHON procedure enables you to run statements from the Python programming language within SAS code. You can submit Python statements from an external Python script or enter Python statements directly.

Download

GitHub: https://github.com/a24lorie/sas-pylogger-handler

Using SASHandler

import logging
from logging import Handler
from sas_handler import SASHandler 

handler = SASHandler(sas=SAS)
handler.setLevel(logging.ERROR)

logger: logging.Logger = logging.getLogger()
logger.setLevel(logging.WARN)
logger.addHandler(handler)

logger.error("This is an error message")  # This log message will be shown
logger.debug("This is a debug message")   # This log message won't be shown

img.png

Contributing

This library welcomes contributors from all developers, regardless of your experience or programming background. If you find a bug, send a pull request and we'll discuss things. If you are not familiar with "pull request" term I recommend reading the following article for better understanding We value kind communication and building a productive, friendly environment for maximum collaboration and fun.

Metadata

Release files for sas-pylogger-handler 0.2.0

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

Source distribution (sdist)

Source distribution for sas-pylogger-handler 0.2.0
File Size Uploaded
sas-pylogger-handler-0.2.0.tar.gz 3.2 kB Details

Release files / sas-pylogger-handler-0.2.0.tar.gz

Download URL sas-pylogger-handler-0.2.0.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
08ec842e99eb9de29da8ba0b68d95821c1bd12ce074b135063bee92a05cde11e
BLAKE2b-256 checksum
How to use checksums
259b2a5ac66d1bf5d9ae62a50e29c8e8844f4d1158348acaee6623a0e9e57bb2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Release history Release notifications | RSS feed

This release

0.2.0 This release

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