-
Notifications
You must be signed in to change notification settings - Fork 1
#250 spice up logger #75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
45d8812
feat(create-json-log-object-data): improved handling of logged error …
mumenthalers c575382
feat(console-json-log-transport): expose consoleJsonLogTransport
mumenthalers ac173c3
feat(node-console-log-transport): expose NodeConsoleLogTransport
mumenthalers 0739de1
style(logger): format all
mumenthalers 7cf0790
build(release): next version [skip_build]
actions-user d0e6f2b
feat(create-console-logger): utility to simply create a console logge…
mumenthalers 0c897a0
build(release): next version [skip_build]
actions-user f1a97c6
test(create-console-logger): test it
mumenthalers fd5bd12
build(release): next version [skip_build]
actions-user 9a2d025
feat(create-console-logger): default to ConsoleJsonLogTransport when …
mumenthalers a29a5c4
Revert "feat(create-console-logger): default to ConsoleJsonLogTranspo…
mumenthalers d943d38
feat(create-console-logger): add simpleLambdaLogger
mumenthalers 431b606
build(release): next version [skip_build]
actions-user 7edf992
refactor(logger): deep exports for transports
mumenthalers 7177c66
build(release): next version [skip_build]
actions-user 27e21dd
refactor(logger): deep exports for node related stuff
mumenthalers 2bf7660
build(release): next version [skip_build]
actions-user d2cde15
feat(logger): expose getJsonStringifyReplacer utility
mumenthalers 0e312d5
build(release): next version [skip_build]
actions-user 0db825f
feat(logger): below-level buffering for console-json logger
mumenthalers ee039b9
style(format): why necessary?
mumenthalers c07ff7a
build(release): next version [skip_build]
actions-user 551cb23
refactor(logger): utility functions
mumenthalers 052f4c6
refactor(logger): utility functions
mumenthalers 8edcbb8
refactor(logger): utility functions
mumenthalers 5df0017
build(release): next version [skip_build]
actions-user c688c6d
refactor(console-json-log): actually implement and test logJsObject
mumenthalers 3575396
refactor(console-json-log): actually implement and test logJsObject
mumenthalers 52a6fc1
build(release): next version [skip_build]
actions-user 2feec4e
refactor(node-console-logger): better emojis
mumenthalers 9c1fc9e
docs(console-json-log-transport): describe jsonStringifyReplacer
mumenthalers cf38664
build(release): next version [skip_build]
actions-user 246d0b7
style(logger-helper): rename file
mumenthalers e9e7b85
docs(readme): describe usage, behavior, transports and utilities
mumenthalers 44f04a7
build(release): next version [skip_build]
actions-user File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
packages/logger/src/console-json-log-transport/console-json-log-transport-config.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| import { LogLevel } from '../model/log-level.enum.js' | ||
|
|
||
| export interface ConsoleJsonLogTransportConfig { | ||
| logLevel: LogLevel | ||
|
|
||
| /** | ||
| * function to alter the serialization of log messages. | ||
| * additionally, {@link getJsonStringifyReplacer} is always applied to handle circular references, bigints and Errors. | ||
| * @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 | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.