2011/11/7 Jean-Michel Pichavant <jeanmic...@sequans.com>: > Gábor Farkas wrote: >> >> is there a way to setup log-handlers in a way that they log logs from >> every logger, exept certain ones? >> >> i tried to create filters, but the log-record does not have access to >> his logger, so i cannot filter based on it's "path". > > Are you sure ? > LogRecord objects have a name attribute. You could do something like > > return 'IdontWantYou' not in record.name > > in your filter.
d'oh .. thanks, i somehow overlooked the name attribute. it's exactly what i need. thanks, gabor -- http://mail.python.org/mailman/listinfo/python-list