structlog icon indicating copy to clipboard operation
structlog copied to clipboard

Add public method to access _processors in BoundLogger

Open heikoheiko opened this issue 10 years ago • 2 comments

My use case here is, that I have one special processor wich forwards events to listeners, independent of the loglevel. in order to check if the logger 'is active' i need to access the first processor in list and check if it has listeners. currently i have to access the private member _processors.

i think a pythonic way would to solve this would be to simply make the processor list public.

heikoheiko avatar Feb 07 '15 15:02 heikoheiko

related to https://github.com/ethereum/pyethereum/issues/202

heikoheiko avatar Feb 07 '15 15:02 heikoheiko

Ok, I will document it as public similarly to _logger. I will not change the APIs though because turns out people are using internal APIs. ;)

hynek avatar Feb 08 '15 08:02 hynek