Skip to content

Conversation

@HeyItsGilbert
Copy link
Member

Summary

This PR adds comprehensive documentation for psake's custom logging capabilities, enabling users to integrate their own logging systems with psake's build process.

Changes

  • New documentation: Added docs/tutorial-advanced/custom-logging.md covering:

    • Overview of psake's configurable output handlers
    • Table of default message types and their behaviors
    • Instructions for overriding individual message type handlers
    • Instructions for replacing the entire logging system
    • Practical example of logging to a file with timestamps
  • Updated navigation: Added the new custom logging page to the advanced tutorial section in sidebars.ts

Implementation Details

The documentation explains two levels of customization:

  1. Fine-grained control: Override specific message types (heading, default, debug, warning, error, success) via $config.outputHandlers
  2. Complete replacement: Override the entire routing logic via $config.outputHandler for full control over message handling

Each approach is documented with clear examples showing how to implement common scenarios like file logging and message suppression.

https://claude.ai/code/session_0184Z4DLZ8Db72rkpca4kQwP

Covers overriding individual message type handlers and replacing
the entire output routing logic via psake-config.ps1.

https://claude.ai/code/session_0184Z4DLZ8Db72rkpca4kQwP
Explains how psake discovers and loads the config file, lists all
available configuration properties, and links to the custom logging
doc for output handler details.

https://claude.ai/code/session_0184Z4DLZ8Db72rkpca4kQwP
@netlify
Copy link

netlify bot commented Jan 31, 2026

Deploy Preview for psake ready!

Name Link
🔨 Latest commit 461fef2
🔍 Latest deploy log https://app.netlify.com/projects/psake/deploys/697d699a2943a800089b404b
😎 Deploy Preview https://deploy-preview-40--psake.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

- Moved from tutorial-basics to tutorial-advanced since this is an
  uncommon, advanced topic
- Added note that most projects don't need a config file
- Added "Partial Overrides" section explaining that missing properties
  keep their defaults
- Fixed cross-reference links

https://claude.ai/code/session_0184Z4DLZ8Db72rkpca4kQwP
The previous intro stated psake had no way to log errors to a file,
which is no longer true with the outputHandlers feature. Updated to
describe the default behavior and link to the custom logging doc.

https://claude.ai/code/session_0184Z4DLZ8Db72rkpca4kQwP
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds comprehensive documentation for psake's custom logging capabilities, enabling users to integrate their own logging systems with psake's build process. The documentation is well-structured and provides clear guidance on both fine-grained control of individual message types and complete replacement of the logging system.

Changes:

  • Added docs/tutorial-advanced/custom-logging.md with detailed instructions for overriding psake's output handlers
  • Added docs/tutorial-advanced/psake-config.md documenting the psake configuration file structure and all available properties
  • Updated docs/tutorial-advanced/logging-errors.md to reference the new custom logging documentation and clarify the default error handling behavior
  • Updated sidebars.ts to include both new documentation pages in the Advanced Techniques section

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
sidebars.ts Added two new entries (custom-logging and psake-config) to the Advanced Techniques section of the guides sidebar
docs/tutorial-advanced/custom-logging.md New documentation explaining how to override psake's output handlers, including examples for specific message types and full logging replacement
docs/tutorial-advanced/psake-config.md New documentation describing the psake-config.ps1 file structure, all configuration properties, and practical examples for common scenarios
docs/tutorial-advanced/logging-errors.md Updated to clarify default error logging behavior and reference the new custom logging documentation

@@ -0,0 +1,71 @@
# Custom Logging
Copy link

Copilot AI Jan 31, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing frontmatter block. Based on codebase conventions, tutorial files should include frontmatter with at minimum a description field for SEO and documentation clarity. For example, similar files use:

---
description: "Brief description of the topic"
---

This helps with search engine optimization and provides context when the page is shared.

Copilot uses AI. Check for mistakes.
@@ -0,0 +1,89 @@
# psake Configuration File
Copy link

Copilot AI Jan 31, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing frontmatter block. Based on codebase conventions, tutorial files should include frontmatter with at minimum a description field for SEO and documentation clarity. For example, similar files use:

---
description: "Brief description of the topic"
---

This helps with search engine optimization and provides context when the page is shared.

Copilot uses AI. Check for mistakes.
Copy link

@tablackburn tablackburn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Address the Copilot comments before merging though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants