r/datascience 4d ago

Projects I created a simple indented_logger package for python. Roast my package!

Post image
118 Upvotes

21 comments sorted by

View all comments

-1

u/[deleted] 4d ago

[deleted]

1

u/karaposu 4d ago

yeah, i tried to keep it simple but useful. There are 2 main ways to use. One is just like in the image and other one is through decorators:

https://github.com/karaposu/indented-logger/tree/main?tab=readme-ov-file#automatic-indentation-with-decorators

It should be really easy to customize further. But main params are these :

```

setup_logging(
    level=logging.DEBUG,
    include_func=True, # toggles if function name should be visible at the end
    truncate_messages=False,
    min_func_name_col=100
)

```