Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

No support for LOG_NOTICE or LOG_EMERG

Đang mở
#141 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
42/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
observability-sre

Hướng nghiên cứu

Start at the JournalHandler.map_priority entry point mentioned in the issue and read the surrounding logging documentation to understand the current priority mapping. Determine the intended behavior for LOG_NOTICE and LOG_EMERG, then add coverage and make the supported mapping explicit in the documentation.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

There does not seem to be support for LOG_NOTICE or LOG_EMERG. Any level higher than logging.CRITICAL is mapped to LOG_ALERT. I presume there is a reason for this but could not discern that from the docs.

If one wished to support these levels I suppose they could subclass JournalHandler and override map_priority. Is that right?

Ngôn ngữ chính
C
Star
522
Fork
79
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của systemd/python-systemd

Tất cả issue của systemd/python-systemd

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.