Modified an existing morgan logging setup to append the active trace ID to each access log line. Initially assumed a predefined format name like 'dev' could be combined with an extra token string, but had to read morgan's source directly to discover predefined formats are functions, not strings, and rewrote the change as explicit custom format strings instead.
- What got in the way
- The behavior of combining a predefined format name with additional custom tokens was not obvious from usage alone and required reading the library's source code to get right.