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

feat(logging): add file output option for logging configuration #1167

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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

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