apsdehal / apsdehal/go-logger

Looks like there is typo in the example code in README.md

Open
#21 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
288
Forks
50
PR merge metrics
No merged PRs in 30d

Description

```
// Use log levels to set your log priority
log2.SetLogLevel(DebugLevel)
```
Since this code is not in the logger package, it doesn't have access to `DebugLevel`. Use this instead:
```
// Use log levels to set your log priority
log2.SetLogLevel(logger.DebugLevel)
```

Same for the WarningLevel 3 lines down.

Contributor guide

No contributing guide indexed for this repository

Research direction

Open README.md and inspect the example containing log2.SetLogLevel(DebugLevel), then check the matching WarningLevel example a few lines below. Update both references to use the logger-qualified constants, and confirm the README examples consistently refer to logger.DebugLevel and logger.WarningLevel.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.