I've used in my generated migration script:

log = logging.getLogger(__name__)                                           
                        
log.setLevel(logging.INFO)                                                 
                         

for now and that seems to work; quick glance at Alembic’s code indicates 
that’s what Alembic uses as well. The *util/messaging.py* is used in other 
contexts.

Jens


On Sunday, October 1, 2017 at 5:03:31 PM UTC+10, jens.t...@gmail.com wrote:
>
> Hi,
>
> I’d like to output some logging info from my migration script, which was 
> generated by Alembic. Other than Python’s own logging module 
> <https://docs.python.org/3/library/logging.html>, what is the recommended 
> way to hook into Alembic’s logger to use it’s formatting?
>
> Thanks!
> Jens
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy-alembic" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy-alembic+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to