Re: [sqlalchemy] Logging handler logic

2021-06-14 Thread jca...@gmail.com
Ok, Thanks for the patience, I should have looked at this closer. This now has reliable behavior for my use case by not using the echo flag. Thank you very much, jlc On Monday, June 14, 2021 at 5:33:41 AM UTC-6 Mike Bayer wrote: > the echo flag doesn't support customization like this. if you

Re: [sqlalchemy] Logging handler logic

2021-06-14 Thread Mike Bayer
the echo flag doesn't support customization like this. if you want to use your own handlers then you should use traditional logging steps; there's nothing the echo flag does that can't be accomplished using the logging API directly. On Sun, Jun 13, 2021, at 10:24 PM, jca...@gmail.com

Re: [sqlalchemy] Logging handler logic

2021-06-13 Thread Mike Bayer
the line you refer towards involves a flag called "echo", which is described at https://docs.sqlalchemy.org/en/14/core/engines.html#more-on-the-echo-flag and is entirely optional. if you don't use the echo flag, SQLAlchemy's logging behavior is completely traditional, with the caveat that the

[sqlalchemy] Logging handler logic

2021-06-13 Thread jca...@gmail.com
Hello everyone, After reviewing the handler logic, I am not clear that it implements logging within the pattern guidelines defined by the base logging implementation. In log.py#L103