Skip to content

Commit 45fb39c

Browse files
dgellowclaude
andcommitted
feat: add structured logging with platform DI
Add a structured logger for GitHub Actions and GitLab CI: - Log levels: debug, info, warn, error, off (via LOG_LEVEL input) - Context prefixes for tracking async operations (child loggers) - Collapsible groups (GitHub ::group::, GitLab section_start) - Color-coded terminal output - Platform dependency injection (no hardcoded platform checks) - fatal() method with bug report URL for uncaught errors Co-authored-by: Claude <[email protected]>
1 parent 9133735 commit 45fb39c

24 files changed

+1975
-740
lines changed

action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,9 @@ inputs:
3737
description: "If true, renegerate the endpoints in the Stainless config file."
3838
required: false
3939
default: "main"
40+
log_level:
41+
description: >-
42+
Log verbosity level. Options: 'debug', 'info', 'warn', 'error', 'off'.
43+
Use 'debug' for detailed diagnostic information.
44+
required: false
45+
default: "info"

build/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ inputs:
7171
https://app.stainless.com/docs/reference/config#open-api-config for
7272
more details.
7373
required: false
74+
log_level:
75+
description: >-
76+
Log verbosity level. Options: 'debug', 'info', 'warn', 'error', 'off'.
77+
Use 'debug' for detailed diagnostic information.
78+
required: false
79+
default: "info"
7480

7581
outputs:
7682
outcomes:

checkout-pr-ref/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,9 @@ inputs:
3030
Stainless config for the preview build.
3131
required: false
3232
default: ${{ github.event.pull_request.head.sha }}
33+
log_level:
34+
description: >-
35+
Log verbosity level. Options: 'debug', 'info', 'warn', 'error', 'off'.
36+
Use 'debug' for detailed diagnostic information.
37+
required: false
38+
default: "info"

0 commit comments

Comments
 (0)