Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
45d8812
feat(create-json-log-object-data): improved handling of logged error …
mumenthalers Jan 19, 2026
c575382
feat(console-json-log-transport): expose consoleJsonLogTransport
mumenthalers Jan 19, 2026
ac173c3
feat(node-console-log-transport): expose NodeConsoleLogTransport
mumenthalers Jan 19, 2026
0739de1
style(logger): format all
mumenthalers Jan 19, 2026
7cf0790
build(release): next version [skip_build]
actions-user Jan 19, 2026
d0e6f2b
feat(create-console-logger): utility to simply create a console logge…
mumenthalers Jan 19, 2026
0c897a0
build(release): next version [skip_build]
actions-user Jan 19, 2026
f1a97c6
test(create-console-logger): test it
mumenthalers Jan 19, 2026
fd5bd12
build(release): next version [skip_build]
actions-user Jan 19, 2026
9a2d025
feat(create-console-logger): default to ConsoleJsonLogTransport when …
mumenthalers Jan 20, 2026
a29a5c4
Revert "feat(create-console-logger): default to ConsoleJsonLogTranspo…
mumenthalers Jan 20, 2026
d943d38
feat(create-console-logger): add simpleLambdaLogger
mumenthalers Jan 20, 2026
431b606
build(release): next version [skip_build]
actions-user Jan 20, 2026
7edf992
refactor(logger): deep exports for transports
mumenthalers Jan 20, 2026
7177c66
build(release): next version [skip_build]
actions-user Jan 20, 2026
27e21dd
refactor(logger): deep exports for node related stuff
mumenthalers Jan 21, 2026
2bf7660
build(release): next version [skip_build]
actions-user Jan 21, 2026
d2cde15
feat(logger): expose getJsonStringifyReplacer utility
mumenthalers Jan 21, 2026
0e312d5
build(release): next version [skip_build]
actions-user Jan 21, 2026
0db825f
feat(logger): below-level buffering for console-json logger
mumenthalers Jan 23, 2026
ee039b9
style(format): why necessary?
mumenthalers Jan 23, 2026
c07ff7a
build(release): next version [skip_build]
actions-user Jan 23, 2026
551cb23
refactor(logger): utility functions
mumenthalers Jan 23, 2026
052f4c6
refactor(logger): utility functions
mumenthalers Jan 23, 2026
8edcbb8
refactor(logger): utility functions
mumenthalers Jan 23, 2026
5df0017
build(release): next version [skip_build]
actions-user Jan 23, 2026
c688c6d
refactor(console-json-log): actually implement and test logJsObject
mumenthalers Jan 23, 2026
3575396
refactor(console-json-log): actually implement and test logJsObject
mumenthalers Jan 23, 2026
52a6fc1
build(release): next version [skip_build]
actions-user Jan 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 13 additions & 9 deletions packages/logger/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shiftcode/logger",
"version": "3.0.4",
"version": "4.0.0-pr250.9",
"description": "logger for local and aws lambda execution",
"repository": "https://github.com/shiftcode/sc-commons-public",
"license": "UNLICENSED",
Expand All @@ -9,12 +9,16 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
"types": "./dist/public-api.d.ts",
"default": "./dist/public-api.js"
},
"./test/*.js": {
"types": "./dist/test/*.d.ts",
"default": "./dist/test/*.js"
"./node": {
"types": "./dist/node/public-api.d.ts",
"default": "./dist/node/public-api.js"
},
"./testing": {
"types": "./dist/testing/public-api.d.ts",
"default": "./dist/testing/public-api.js"
}
},
"scripts": {
Expand All @@ -28,18 +32,18 @@
"lint:ci": "eslint ./src ./test",
"lint:staged": "eslint --fix --cache",
"prepublish": "node ../publish-helper/dist/prepare-dist.js",
"test": "NODE_OPTIONS=\"--experimental-vm-modules --trace-warnings\" npx jest --config jest.config.js",
"test": "NODE_OPTIONS=\"--experimental-vm-modules --no-warnings\" npx jest --config jest.config.js",
"test:ci": "npm run test",
"test:watch": "npm run test -- --watch"
},
"devDependencies": {
"@shiftcode/utilities": "^4.3.1"
},
"peerDependencies": {
"@shiftcode/utilities": "^4.0.0 || ^4.0.0-pr53"
"@shiftcode/utilities": "^4.0.0"
},
"engines": {
"node": "^20.0.0 || ^22.0.0"
"node": "^22.0.0 || ^24.0.0"
},
"publishConfig": {
"directory": "dist"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { LogLevel } from '../model/log-level.enum.js'

export interface ConsoleJsonLogTransportConfig {
logLevel: LogLevel

/**
* function to alter the serialization of log messages.
* @default {@link jsonMapSetStringifyReplacer}
*/
jsonStringifyReplacer?: (key: string, value: any) => any

/**
* Log messages below the configured level will be buffered up to this size
* and flushed when a log event with level Error occurs.
* set to 0 to disable this "below-level" buffering.
* @default 50
*/
belowLevelLogBufferSize?: number

/**
* when true, the log output will be a JS object instead of a JSON string. {@jsonStringifyReplacer} is still used.
* enable this option, when your lambda function is configured with `loggingFormat='JSON'`
* @hint when loggingFormat='JSON' is set, you should also configure `applicationLogLevelV2` with `TRACE` - otherwise you won't see all logging output.
* @default false
*/
logJsObject?: boolean
}
Loading