Skip to content

Add file output option for logging configuration#1167

Merged
AlexxIT merged 5 commits intoAlexxIT:masterfrom
skrashevich:feat-logging-to-file
Feb 24, 2025
Merged

Add file output option for logging configuration#1167
AlexxIT merged 5 commits intoAlexxIT:masterfrom
skrashevich:feat-logging-to-file

Conversation

@skrashevich
Copy link
Collaborator

@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

57Darling02 pushed a commit to 57Darling02/go2nvr that referenced this pull request Feb 17, 2026
feat(logging): add file output option for logging configuration
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