Skip to content

feat: CommonLogger accepts a message with data - #168

Merged
fiddur merged 1 commit into
mainfrom
feat/common-logger-msg-data
Oct 8, 2026
Merged

fiddur merged 1 commit into
mainfrom
feat/common-logger-msg-data

Conversation

@fiddur

@fiddur fiddur commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Follow-up to #167. Each CommonLogger method now accepts two forms:

logger.warn({ msg: 'failed', err })   // (input: LogInput)
logger.warn('failed', { err })        // (msg: string, data: LogData)

@fiddur fiddur changed the title feat: CommonLogger accepts a message with data feat: CommonLogger accepts data next to the input Oct 8, 2026
@fiddur
fiddur force-pushed the feat/common-logger-msg-data branch from 0c944f0 to d5fe91d Compare October 8, 2026 09:19
`logger.warn('failed', { err })` next to the single-argument form; the data fields are merged
under the message.

Claude-Session: https://claude.ai/code/session_01JuGyKbJyWXdXBeNS7VdnU1
@fiddur
fiddur force-pushed the feat/common-logger-msg-data branch from d5fe91d to 2be9e5a Compare October 8, 2026 09:22
@fiddur fiddur changed the title feat: CommonLogger accepts data next to the input feat: CommonLogger accepts a message with data Oct 8, 2026
@fiddur
fiddur marked this pull request as ready for review October 8, 2026 09:23
@fiddur
fiddur requested a review from kirillgroshkov as a code owner October 8, 2026 09:23
@fiddur
fiddur merged commit 5bbcee7 into main Oct 8, 2026
3 checks passed
@fiddur
fiddur deleted the feat/common-logger-msg-data branch October 8, 2026 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants