logger¶
Logging utilities.
- class aws_stepfunction.logger.BaseLogger(name=None, **kwargs)[source]¶
A base class for logger constructor.
- decorator(func)[source]¶
A decorator that allow you to use
verbose
parameter to temporarily disable logging in the given function. (default is enabled)Example:
@logger.decorator def my_func(name): logger.info(f"hello {name}!") my_func("alice") # this will print "hello alice" my_func("alice", verbose=False) # this will print nothing