Skip to content

Use StderrLogHandler for rich logging features.#1066

Merged
jglogan merged 1 commit intoapple:mainfrom
jglogan:debuggable-command
Jan 20, 2026
Merged

Use StderrLogHandler for rich logging features.#1066
jglogan merged 1 commit intoapple:mainfrom
jglogan:debuggable-command

Conversation

@jglogan
Copy link
Contributor

@jglogan jglogan commented Jan 17, 2026

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Motivation and Context

See above.

Testing

  • Tested locally
  • Added/updated tests
  • Added/updated docs

- Facilitates apple#507, apple#642.
- Plumb logger with logger option access into
  every command.
- StderrLogHandler allows logging to be enhanced
  for ANSI color mode for log levels, JSONL log
  output, replacing `--debug` with `--level level`.
- Global logger is now just an Application.swift
  fileprivate only used for initial args processing.
- Log with timestamp at debug and trace level.
- Metadata output is crude at present; we can refine
  this in a follow-up.
@jglogan jglogan merged commit 2b18fc5 into apple:main Jan 20, 2026
4 of 5 checks passed
@jglogan jglogan deleted the debuggable-command branch January 20, 2026 22:38
saehejkang pushed a commit to saehejkang/container that referenced this pull request Jan 23, 2026
- Facilitates apple#507, apple#642.
- Plumb logger with logger option access into every command.
- StderrLogHandler allows logging to be enhanced for ANSI color mode for
log levels, JSONL log output, replacing `--debug` with `--level level`.
- Global logger is now just an Application.swift fileprivate only used
for initial args processing.
- Log with timestamp at debug and trace level.
- Metadata output is crude at present; we can refine this in a
follow-up.
saehejkang pushed a commit to saehejkang/container that referenced this pull request Jan 27, 2026
- Facilitates apple#507, apple#642.
- Plumb logger with logger option access into every command.
- StderrLogHandler allows logging to be enhanced for ANSI color mode for
log levels, JSONL log output, replacing `--debug` with `--level level`.
- Global logger is now just an Application.swift fileprivate only used
for initial args processing.
- Log with timestamp at debug and trace level.
- Metadata output is crude at present; we can refine this in a
follow-up.
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.

2 participants

Comments