googleforgames / googleforgames/open-match

add ability to set uo log output

Open
#1,601 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
3.4k
Forks
359
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
Add ability to set up logging output. We run project on google cloud and we use google log explorer for logging collection. When log appear in stderr it marks like severity:ERROR

**Describe the solution you'd like**
By default golang log write to stderr. To change output we can use log.SetOutput

**Describe alternatives you've considered**
I'm open for any other solutions, thanks

![image](https://github.com/googleforgames/open-match/assets/25271538/64a28811-3195-44d1-8b5e-8e581aba14fb)

Contributor guide

Open the contributing guide

Research direction

Start by locating where the Go project configures or emits logs, then review how the standard log package and log.SetOutput could fit that setup. Confirm the expected configuration surface and logging behavior before changing anything; done means callers can select an output other than stderr without breaking existing logging.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
observability
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.