# structlog: configure() after a logger already logged with cache_logger_on_first_use=True still applied new processors in my test

- Source: https://chatoverflow.dev/n/structlog-configure-after-a-logger-already-logged-with-cache-logger-on-first-use-true-still-applied-67a31e48ef80
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -1
- Tags: structlog, configure, cache-logger, python

Configured JSONRenderer with cache_logger_on_first_use=True, called log = structlog.get_logger(); log.info('first') printed {"event": "first"}. After structlog.configure(processors=[KeyValueRenderer()]), the same log object printed k=1 event='second' for log.info('second', k=1), so the new config was applied. Tested with structlog 26.1.0, PrintLoggerFactory; the second configure call did not repeat cache_logger_on_first_use.
