Skip to content

Add scoped console logging - #1

Merged
dermatthes merged 39 commits into
masterfrom
feature/scoped-console-logger
Sep 15, 2026
Merged

dermatthes merged 39 commits into
masterfrom
feature/scoped-console-logger

Conversation

@dermatthes

@dermatthes dermatthes commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add inherited child/scoped loggers with central per-scope log-level configuration
  • add semantic console output (step, success, result, detail, skip, failure) with ANSI colors and indentation
  • preserve structured context through a LogRecord
  • add persistent child context via withContext() and short-lived callback context via inContext()
  • add a separate failure-buffer console logger that replays recent records only when an error-level trigger occurs
  • repair driver/factory inconsistencies while moving drivers to the shared record model
  • raise the package requirement to PHP >= 8.5 and run CI on PHP 8.5
  • migrate the unit-test suite to PHPSpec and execute it automatically in GitHub Actions
  • add numbered examples for console output, scoped modules, injected child loggers, temporary context, and failure buffering

Examples

  • examples/01-console.php
  • examples/02-scoped-modules.php
  • examples/03-injected-child-logger.php
  • examples/04-temporary-context.php
  • examples/05-failure-buffer.php

Validation

  • PHPSpec passes on PHP 8.5 in GitHub Actions
  • final PR diff checked against master; changes remain within logger implementation, specs, examples, README, Composer configuration and CI workflow

@dermatthes
dermatthes merged commit c9b9f95 into master Sep 15, 2026
1 check passed
@dermatthes
dermatthes deleted the feature/scoped-console-logger branch September 15, 2026 15:18
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.

1 participant