Mercurial > p > roundup > code
comparison CHANGES.txt @ 8487:b09ef85f0da6
feat: add nanoid pkg trace_id gen and decorator for setting processName
nanoid is a shorter unique id generator and faster than uuid.
I truncate nanoid id's to 12 chars to make it more readable.
Also added decorator to allow setting the default processName
definition in the logging module. admin.py and wsgi_handler now set
processName. configuration.py knows how to overide the processName if
set to the default MainProcess.
Updated install docs to add nanoid as optional, how to switch to
different trace_id output. pydoc generated docs include logcontext
module and are referenced from admin.py.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Mon, 08 Dec 2025 00:23:14 -0500 |
| parents | 224ccb8b49ca |
| children | 7142740e6547 |
comparison
equal
deleted
inserted
replaced
| 8478:ed4ef394d5d6 | 8487:b09ef85f0da6 |
|---|---|
| 52 or put them in the input buffer for editing. (John Rouillard) | 52 or put them in the input buffer for editing. (John Rouillard) |
| 53 - add format to logging section in config.ini. Used to set default | 53 - add format to logging section in config.ini. Used to set default |
| 54 logging format. (John Rouillard) | 54 logging format. (John Rouillard) |
| 55 - the default logging format template includes an identifier unique | 55 - the default logging format template includes an identifier unique |
| 56 for a request. This identifier (trace_id) can be use to identify | 56 for a request. This identifier (trace_id) can be use to identify |
| 57 logs for a specific transaction. Logging also supports a | 57 logs for a specific transaction. Will use nanoid if installed, uses |
| 58 trace_reason log token with the url for a web request. The logging | 58 uuid.uuid4 otherwise. Logging also supports a trace_reason log token |
| 59 format can be changed in config.ini. (John Rouillard) | 59 with the url for a web request. The logging format can be changed in |
| 60 config.ini. (John Rouillard) | |
| 60 | 61 |
| 61 2025-07-13 2.5.0 | 62 2025-07-13 2.5.0 |
| 62 | 63 |
| 63 Fixed: | 64 Fixed: |
| 64 | 65 |
