kataras / kataras/iris

How to setup access log with different log level.

Open
#2,193 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
25.6k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

When setting up the access log you have to pass the write to it. Doing so it will take the loglevel of that writer which not always make sense. I want to be able to configure the access log to log non 200 responses as error and 200 as info. So that when I set the loglevel I only log what I need.

Is there a way to do so? The examples/documentation do not show this functionalty

Contributor guide

Open the contributing guide

Research direction

Start by locating the access-log setup and reviewing the existing examples and documentation referenced in the issue. Determine how the writer's log level is currently used, then define configuration that records non-200 responses as errors and 200 responses as info, with documentation showing the completed setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend, observability
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.