mirror of
https://github.com/fosrl/olm.git
synced 2026-05-06 10:47:55 -05:00
[PR #74] [MERGED] feat(logger): add log file switch to olm config #76
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fosrl/olm/pull/74
Author: @water-sucks
Created: 1/10/2026
Status: ✅ Merged
Merged: 1/11/2026
Merged by: @oschwartz10612
Base:
dev← Head:add-log-file-switch📝 Commits (2)
11ee46echore: format files using gofmtd64b7bffeat(logger): configure log file path thorugh global options📊 Changes
6 files changed (+56 additions, -46 deletions)
View changed files
📝
dns/dns_proxy.go(+5 -5)📝
dns/dns_records.go(+1 -1)📝
dns/dns_records_test.go(+34 -34)📝
dns/platform/darwin.go(+1 -1)📝
olm/olm.go(+13 -4)📝
olm/types.go(+2 -1)📄 Description
Community Contribution License Agreement
By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.
Description
This adds a log file path option to the
olmconfig struct so that it does not have to be configured directly using thenewtpackage.This enables removal of the explicit
newtdependency for upstream packages that require it, such aspangolin-cliand other client projects.I also ran a pass of
gofmton the project.How to test?
Pass in a log file path in the
olm.GlobalConfigstruct and make sure it gets used when logging.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.