How to determine Log Level from promlog?

Open
#342 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
go
Domain
tooling

Research direction

Start by reading the promlog API and its handling of the configured log level. Determine whether exposing the current level is supported by the existing design, and clarify the expected behavior and tests before treating this as complete.

Written by the indexing model from the issue text.

Description

Hi,
as far as I can see, the promlog does not provide a method like GetLevel().

Is their a way to get the current log level set on promlog?

Best regards

Dominant language
Go
Stars
297
Forks
380
Avg merge
3d 18h
Merged PRs (30d)
12

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from prometheus/common

All issues in prometheus/common

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.