Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR fixes default log storage issues by improving the logging path resolution logic and updating package dependencies. The main focus is on making the CLI logging more robust when determining where to store log files.
- Enhanced log path resolution with a fallback hierarchy (environment variable → user config → current working directory → home directory)
- Updated CLI utilities package version from 1.13.0 to 1.13.1 across all dependent packages
- Added new console logging flag to the logging configuration command
Reviewed Changes
Copilot reviewed 30 out of 32 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/contentstack-utilities/src/logger/log.ts | Implemented robust log path resolution with proper fallback logic and error handling |
| packages/contentstack-utilities/package.json | Version bump to 1.13.1 to reflect the logging improvements |
| packages/contentstack/package.json | Updated dependencies to use the new utilities version |
| packages/contentstack-auth/src/commands/auth/whoami.ts | Removed redundant log statement in whoami command |
| Multiple package.json files | Updated CLI utilities dependency references to version 1.13.1 |
| Multiple README.md files | Updated documentation to reflect new logging options and version changes |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
naman-contentstack
approved these changes
Jul 30, 2025
shafeeqd959
approved these changes
Jul 30, 2025
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR fixes default log storage issues by improving the logging path resolution logic and updating package dependencies.
Enhanced log path resolution with a fallback hierarchy (environment variable → user config → current working directory → home directory)
Updated CLI utilities package version from 1.13.0 to 1.13.1 across all dependent packages