Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

JSON logging support

未关闭
#40 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
30/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
aws, powershell

调研方向

首先阅读链接的 AWS Lambda 日志记录文档,并追踪 AWS_LAMBDA_LOG_FORMAT 与 runtime 现有对 Write-Host、Write-Debug、-Verbose、-Warning、Write-Information 以及隐式 ErrorRecords 的处理之间的关系。完成标准是为 runtime 固有、客户、结构化和隐式日志事件定义并实现 JSON 和纯文本行为。

由索引模型根据 Issue 内容生成。

描述

AWS Lambda offers support for both plain-text and JSON format logs.

Lambda exposes this configuration via the AWS_LAMBDA_LOG_FORMAT environment variable. It's currently missing from the environment variable documentation (see case 175226052300866), but the variable appears to be set to either Text or JSON depending on customer configuration.

There's a couple of aspects to supporting this:

  • Runtime-intrinsic logs (e.g. anything that's Write-Host '[RUNTIME-<...>')
  • Customer logs that use:
    • Unstructured string-only logs (Write-Debug, -Verbose, -Warning)
    • Unstructured partially-formatted logs (Write-Host)
    • Structured logs via Write-Information
  • Implicit log events (e.g. ErrorRecords generated from parser errors)
主要语言
PowerShell
星标
65
派生
21
PR 合并指标
30 天内没有已合并 PR

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

awslabs/aws-lambda-powershell-runtime 的其他 Issue

查看 awslabs/aws-lambda-powershell-runtime 的全部 Issue

相似的 Issue

更多 Cloud Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。