aws / sagemaker-core

Apache License 2.0
5 stars 3 forks source link

Provide reset handler utility to update the Log Level. #8

Closed benieric closed 4 months ago

benieric commented 4 months ago

Description

Provide reset handler utility to update the Log Level.

Motivation

Help users to update Log level using:


%env LOG_LEVEL=DEBUG

from src.generated.utils import reset_logger
reset_logger()

reset_logger(log_level="DEBUG")

Testing Done

python src/tools/codegen.py
pytest -vv tst

**Backwards Compatibility Criteria (if any)**Issue #, if available:

Description of changes:

MOVING PR FROM OLD REPO - https://github.com/mohanasudhan/sagemaker-code-gen/pull/34

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.