Skip to content

feat: cleanup logging output#20

Merged
Stephanvs merged 4 commits into
mainfrom
log-file
Dec 11, 2025
Merged

feat: cleanup logging output#20
Stephanvs merged 4 commits into
mainfrom
log-file

Conversation

@Stephanvs
Copy link
Copy Markdown
Owner

@Stephanvs Stephanvs commented Dec 11, 2025

fixes #19

- Add Serilog packages (Extensions.Hosting, Sinks.File, Sinks.Console)
- Extend PathProvider with GetLogFilePath() for platform-specific log directories
- Create LoggingExtensions.AddHyprLogging() extension method for clean logging setup
- Support debug flag via --debug argument and HYPR_DEBUG environment variable
- File logging: Full format with timestamps, daily rotation, 7-day retention
- Console logging: Simple format in debug mode, warning+ level otherwise
- Refactor logging logic out of Program.cs for cleaner codebase

Resolves GitHub issue #19
- Create LoggingExtensions.AddHyprLogging() extension method
- Move all Serilog configuration out of Program.cs
- Program.cs now uses single clean call: builder.Services.AddHyprLogging(args)
- Eliminates code duplication and improves separation of concerns
- Maintains full functionality while cleaning up architecture
- Remove debug description text from DebugOption
- Add DebugOption to root command in Program.cs
- Correct namespace casing from `hypr` to `Hypr` for consistency
@Stephanvs Stephanvs changed the title Log file feat: cleanup logging output Dec 11, 2025
@Stephanvs Stephanvs merged commit c989a16 into main Dec 11, 2025
4 checks passed
@Stephanvs Stephanvs deleted the log-file branch December 11, 2025 10:22
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.

Implement Platform-Specific Log File Support

1 participant