Skip to content

Helgeb/log_decorator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

log_decorator

Python logging decorator

Based on a gist from https://gist.github.com/bradmontgomery

Install

pip install log_decorator

Use

@timed()
def fast_function(run):
    time.sleep(run * 0.0001)


@timed(False)
def untimed():
    time.sleep(0.001)

About

Python logging decorator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published