-
-
Notifications
You must be signed in to change notification settings - Fork 2
refactor: update logger types and default options for console and stdout plugins #9
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| --- | ||
| "@hyperse/logger-plugin-console": patch | ||
| "@hyperse/logger-plugin-stdout": patch | ||
| "@hyperse/logger": patch | ||
| --- | ||
|
|
||
| ### 🐛 Bug Fixes | ||
|
|
||
| - Improved documentation for default values in console plugin options. | ||
| - Improved documentation for default values in stdout plugin options. | ||
|
|
||
| ### 🏷️ Types | ||
|
|
||
| - Exported the `Logger` type for external usage. | ||
|
|
||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -42,13 +42,13 @@ export type ConsoleOptions = { | |
| * | ||
| * `[ FATAL ] WHAT WILL I DO?!` | ||
| * | ||
| * @default false | ||
| * @default true | ||
| */ | ||
| showLevelName?: boolean; | ||
|
|
||
| /** | ||
| * If true, the level name will be capitalized | ||
| * @default false | ||
| * @default true | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Breaking change: Consistent with stdout plugin The JSDoc default value change from 🤖 Prompt for AI Agents |
||
| */ | ||
| capitalizeLevelName?: boolean; | ||
|
|
||
|
|
@@ -64,7 +64,7 @@ export type ConsoleOptions = { | |
| * If true, each message logged to the terminal will have a timestamp corresponding to the exact time the message was logged. | ||
| * | ||
| * `[ 13:43:10.23 ] bar` | ||
| * @default false | ||
| * @default true | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Breaking change: Consistent with stdout plugin The JSDoc default value change from 🤖 Prompt for AI Agents |
||
| */ | ||
| showTimestamp?: boolean; | ||
|
|
||
|
|
@@ -78,7 +78,7 @@ export type ConsoleOptions = { | |
| * ### **12 hour clock:** | ||
| * | ||
| * `[ 1:27:55.33 PM ] pow` | ||
| * @default false | ||
| * @default true | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Breaking change: Consistent with stdout plugin The JSDoc default value change from 🤖 Prompt for AI Agents |
||
| */ | ||
| use24HourClock?: boolean; | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -130,13 +130,13 @@ If `true`, each message will have the level name attached to it. | |
| [ VERBOSE ] Verbose information | ||
| ``` | ||
|
|
||
| - **Default**: `false` | ||
| - **Default**: `true` | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Breaking change: Default value modification Changing the default from Consider:
🤖 Prompt for AI Agents |
||
|
|
||
| ### `capitalizeLevelName?: boolean` | ||
|
|
||
| If `true`, the level name will be capitalized. | ||
|
|
||
| - **Default**: `false` | ||
| - **Default**: `true` | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Breaking change: Default value modification Changing the default from 🤖 Prompt for AI Agents |
||
|
|
||
| ### `showDate?: boolean` | ||
|
|
||
|
|
@@ -160,7 +160,7 @@ If `true`, each message will have a timestamp attached to it. | |
| [ 13:43:10.23 ] bar | ||
| ``` | ||
|
|
||
| - **Default**: `false` | ||
| - **Default**: `true` | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Breaking change: Default value modification Changing the default from 🤖 Prompt for AI Agents |
||
|
|
||
| ### `use24HourClock?: boolean` | ||
|
|
||
|
|
@@ -178,7 +178,7 @@ If `true`, timestamps will use 24-hour format instead of 12-hour format. | |
| [ 1:27:55.33 PM ] pow | ||
| ``` | ||
|
|
||
| - **Default**: `false` | ||
| - **Default**: `true` | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Breaking change: Default value modification Changing the default from 🤖 Prompt for AI Agents |
||
|
|
||
| ### `showArrow?: boolean` | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -43,13 +43,13 @@ export type StdoutOptions = { | |
| * | ||
| * `[ FATAL ] WHAT WILL I DO?!` | ||
| * | ||
| * @default false | ||
| * @default true | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Breaking change in type definition The JSDoc default value change from 🤖 Prompt for AI Agents |
||
| */ | ||
| showLevelName?: boolean; | ||
|
|
||
| /** | ||
| * If true, the level name will be capitalized | ||
| * @default false | ||
| * @default true | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Breaking change in type definition The JSDoc default value change from 🤖 Prompt for AI Agents |
||
| */ | ||
| capitalizeLevelName?: boolean; | ||
|
|
||
|
|
@@ -65,7 +65,7 @@ export type StdoutOptions = { | |
| * If true, each message logged to the terminal will have a timestamp corresponding to the exact time the message was logged. | ||
| * | ||
| * `[ 13:43:10.23 ] bar` | ||
| * @default false | ||
| * @default true | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Breaking change in type definition The JSDoc default value change from 🤖 Prompt for AI Agents |
||
| */ | ||
| showTimestamp?: boolean; | ||
|
|
||
|
|
@@ -79,7 +79,7 @@ export type StdoutOptions = { | |
| * ### **12 hour clock:** | ||
| * | ||
| * `[ 1:27:55.33 PM ] pow` | ||
| * @default false | ||
| * @default true | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Breaking change in type definition The JSDoc default value change from 🤖 Prompt for AI Agents |
||
| */ | ||
| use24HourClock?: boolean; | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Breaking change: Consistent with stdout plugin
The JSDoc default value change from
falsetotrueforshowLevelNamemaintains consistency with the stdout plugin but represents a breaking change.🤖 Prompt for AI Agents