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

Add file output option for logging configuration #1167

Merged
merged 5 commits into from
Feb 24, 2025

Conversation

skrashevich
Copy link
Contributor

@skrashevich skrashevich commented Jun 6, 2024

The commit introduces the ability to log to a file in the logging system. In internal/app/log.go, new code has been added to handle logging to a specified file path. If no path is provided, it defaults to "go2rtc.log". Additionally, error handling ensures that problems during file opening or writing are logged appropriately.

This commit also updates the README.md to include documentation about a new logging output option (output: stdout), specifying that the available output options are stdout, stderr, or a file path. This provides clarity on the configurable logging output destinations directly from the README file.

Feature request from #1165

@AlexxIT
Copy link
Owner

AlexxIT commented Feb 24, 2025

Thanks!

@AlexxIT AlexxIT added this to the v1.9.9 milestone Feb 24, 2025
@AlexxIT AlexxIT merged commit 79e2fa8 into AlexxIT:master Feb 24, 2025
@AlexxIT AlexxIT changed the title feat(logging): add file output option for logging configuration Add file output option for logging configuration Mar 10, 2025
@AlexxIT
Copy link
Owner

AlexxIT commented Mar 10, 2025

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.

2 participants