11 Commits

Author SHA1 Message Date
e84f7bd810
Add test for muted plaintext log behavior
Some checks failed
Go CI/CD / go-ci (push) Has been cancelled
This test verifies that logs below the ERROR level are properly muted when plaintext logging is enabled without JSON formatting. It ensures that log output adheres to the configured log level settings.
2025-04-10 10:00:55 -06:00
00e6488185
Validate log level and improve test coverage
Some checks failed
Go CI/CD / go-ci (push) Has been cancelled
Added validation to ensure log levels are within valid bounds in `SetLogLevel`. Simplified prefix mapping logic by removing the fallback to INFO level. Expanded test coverage with new test cases for plain text and JSON log outputs.
2025-04-10 09:50:54 -06:00
b66a17197e
Add paths for Go test and coverage reports in Sonar config
Some checks failed
Go CI/CD / go-ci (push) Failing after 6m52s
This update includes `test-report.out` and `coverage.out` for improved test and coverage integration with SonarQube analysis. It ensures better reporting and alignment with project quality standards.
2025-04-10 08:30:19 -06:00
4557b8050c
Add tests for log level string and color representations
Some checks failed
Go CI/CD / go-ci (push) Failing after 6m59s
Introduce unit tests to verify the string and color outputs of StoneLevel. These tests ensure the correct mapping of log levels to their respective string values and color codes.
2025-04-10 08:12:56 -06:00
8fad79b823
Set SonarQube to wait for quality gate results.
All checks were successful
Go CI/CD / go-ci (push) Successful in 10m8s
Added `sonar.qualitygate.wait=true` to enforce the build process waits for SonarQube's quality gate results. This ensures code quality checks are completed before proceeding.
2025-04-09 23:28:01 -06:00
4046c447cc
Refactor getRandomPrefix to simplify StoneLevel mapping.
All checks were successful
Go CI/CD / go-ci (push) Successful in 10m4s
Replaced the switch-case with a map for StoneLevel to prefix mapping. This reduces redundancy, improves readability, and maintains default handling for unsupported levels. Functionality remains unchanged.
2025-04-09 23:04:35 -06:00
94c6e882fb
Add a structured logging utility with custom prefixes and suffixes
Some checks failed
Go CI/CD / go-ci (push) Has been cancelled
Introduce a logging system supporting multiple severity levels, JSON formatting, and customizable prefixes and suffixes inspired by Dr. Stone. Includes random success and failure quotes to make logging more dynamic and engaging.
2025-04-09 22:54:16 -06:00
c92275602f
Set fetch-depth: 0 for checkout in CI workflows
All checks were successful
Go CI/CD / go-ci (push) Successful in 10m2s
This change ensures that the full Git history is fetched during the checkout step in `ci-tag.yml`, `ci-basic.yml`, and `ci-protected.yml`. It is necessary for workflows that rely on complete commit history, such as version tagging or historical analysis.
2025-04-09 03:00:46 -06:00
430e0431b2
Update Go build command in CI workflows
Some checks failed
Go CI/CD / go-ci (push) Has been cancelled
Replaced `go build -o ./bin/app main.go` with `go build ./...` across all CI workflow files. This ensures all packages in the module are built, improving compatibility and consistency in the build process.
2025-04-09 02:43:45 -06:00
9e730f3a5d
initial commit
Some checks failed
Go CI/CD / go-ci (push) Has been cancelled
2025-04-09 02:39:25 -06:00
dfb718b473
Initial commit 2025-04-09 00:25:26 -06:00