Correct ConsoleLogAppender to use msg instead of message.

This commit is contained in:
2025-12-16 13:20:21 -06:00
parent 47fa404914
commit 79b9fe20ac
2 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@jdbernard/logging",
"version": "2.3.0",
"version": "2.3.1",
"description": "Simple Javascript logging service.",
"main": "dist/index.js",
"types": "dist/index.d.ts",

View File

@@ -68,9 +68,9 @@ export class ConsoleLogAppender implements LogAppender {
logMethod(fmtMsg);
}
} else {
const { message, _err, _stacktrace, ...rest } = fmtMsg;
const { msg, _err, _stacktrace, ...rest } = fmtMsg;
const summary = `${LogLevel[msg.level]} -- ${msg.scope}: ${
message ?? fmtMsg.method
msg ?? fmtMsg.method
}\n`;
if (msg.err || msg.stacktrace) {