Files
Bruno GaoandQwen-Coder 43d1229bd7 M1: Add complete documentation structure and contract specifications
- Add comprehensive docs/ directory with standardized structure
- Include architecture specification and contract documents
- Add prompt templates for development workflows
- Establish M1 deliverables as frozen specifications

Co-authored-by: Qwen-Coder <[email protected]>
2026-02-11 23:41:04 +08:00

761 B

title, owner, status, last_reviewed, review_cycle
title owner status last_reviewed review_cycle
日志规范 team-java21-template published 2026-02-11 90d

日志规范

日志级别

  • ERROR: 系统错误,需要立即关注
  • WARN: 潜在问题,需要监控
  • INFO: 重要业务事件
  • DEBUG: 调试信息,仅开发环境

结构化日志

使用 JSON 格式输出,包含以下字段:

{
  "timestamp": "2026-02-11T10:00:00Z",
  "level": "INFO",
  "logger": "com.example.service.UserService",
  "traceId": "abc123",
  "spanId": "def456",
  "customerId": "customer-123",
  "message": "User retrieved successfully",
  "thread": "http-nio-8080-exec-1"
}

日志内容

  • 包含业务上下文(如 customerId)
  • 记录关键业务操作
  • 避免记录敏感信息