Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial Release #3

Merged
merged 27 commits into from
Oct 22, 2024
Merged

Initial Release #3

merged 27 commits into from
Oct 22, 2024

Conversation

shelleeboo
Copy link
Member

No description provided.

neiljpowell and others added 16 commits October 8, 2024 15:20
Add assertion helper functions and tests

- Implement various assertion helper functions such as `IsDecreasingf`, `IsIncreasing`, `IsNonDecreasing`, `IsNonIncreasing`, `IsType`, `JSONEq`, `Len`, `Less`, `Negative`, `Never`, `Nil`, `NoDirExists`, `NoError`, `NoFileExists`, `NotContains`, `NotEmpty`, `NotEqual`, `NotErrorIs`, `NotImplements`, `NotNil`, `NotPanics`, `NotRegexp`, `NotSame`, `NotSubset`, `NotZero`, `Panics`, `Positive`, `Regexp`, `Same`, `Subset`, `True`, `WithinDuration`, `WithinRange`, `YAMLEq`, and `Zero`.
- Add corresponding test cases for the new assertion functions.
- Ensure all assertion functions call `t.FailNow()` if the assertion fails.
- Update `require` package with new assertion functions.
- Add `TestGetLevelFromEnv` to test environment variable-based log level retrieval.
Removed outdated `README.md` in `log/slogx` and streamlined `README.md` in the root directory. Added badges for GoDoc, Go Report Card, and License, and included a basic usage example. Updated `CHANGELOG.md` to mark the initial release and updated `CODEOWNERS` with actual usernames.
- Implement an HTTP server that logs requests with context support.
- Use `slogx` to build a logger with JSON format and context handler.
- Manage log levels using environment variables with `LevelManager`.
suggested changes for example
- Added missing `TestContextLoggerWithMultipleUpdates` test case to context-handler_test.go
- Added context-aware/example.go to demonstrate context-aware logging
- Added level-manager/example.go to demonstrate changing log levels at runtime. THis also demonstrates having multiple loggers
…t.go and logger-builder_test.go

- Removed example.go

- Enhance README.md to include different usages
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome to the project! Verify your commit history (git log) to ensure it does NOT contain public email addresses!

CODE_OF_CONDUCT.md Outdated Show resolved Hide resolved
LICENSE Outdated Show resolved Hide resolved
Copy link
Member

@stevensefton stevensefton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See inline comments please.

- CHANGELOG.md
- CODE_OF_CONDUCT.md
- LICENSE
- NOTICE
- level-manager.go
stevensefton
stevensefton previously approved these changes Oct 17, 2024
Copy link
Member

@stevensefton stevensefton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - thanks!

CHANGELOG.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
- added examples to README.md
- corrected version tag in CHANGELOG.md
- Moved some of the description to a Features section.
Copy link

@ImranAliMohammed ImranAliMohammed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see in-line comments

@neiljpowell neiljpowell self-requested a review October 22, 2024 13:28
@shelleeboo shelleeboo requested review from ImranAliMohammed, neiljpowell and stevensefton and removed request for neiljpowell October 22, 2024 13:30
@shelleeboo shelleeboo merged commit cfd9a5b into main Oct 22, 2024
2 checks passed
@shelleeboo shelleeboo deleted the initial branch October 22, 2024 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants