Eric Hanchrow added the comment: Put the following into a file named "repro.py", then type "python repro.py" at your shell. You'll see ``AttributeError: 'CustomAdapter' object has no attribute 'setLevel'``
import logging logging.basicConfig () class CustomAdapter(logging.LoggerAdapter): def process(self, msg, kwargs): return '[%s] %s' % (self.extra['connid'], msg), kwargs logger = logging.getLogger(__name__) adapter = CustomAdapter(logger, {'connid': '1234'}) adapter.setLevel (logging.WARN) adapter.warning ("Ahoy matey") ---------- nosy: +Eric.Hanchrow _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19063> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com