Skip to content

Update to version 1.1.1 with log level padding#13

Merged
Serpensin merged 4 commits into
masterfrom
test
Jul 29, 2025
Merged

Update to version 1.1.1 with log level padding#13
Serpensin merged 4 commits into
masterfrom
test

Conversation

@Serpensin

Copy link
Copy Markdown
Owner
  • Added consistent padding for log level field in logs.
  • Introduced unit test Logger_LogLevel_Padding_Is_Consistent to verify padding.
  • Modified log formatting in Logging.cs to ensure 5-character width for log levels.
  • Updated AssemblyInfo.cs to version 1.1.1.

- Added consistent padding for log level field in logs.
- Introduced unit test `Logger_LogLevel_Padding_Is_Consistent` to verify padding.
- Modified log formatting in `Logging.cs` to ensure 5-character width for log levels.
- Updated `AssemblyInfo.cs` to version 1.1.1.
Copilot AI review requested due to automatic review settings July 29, 2025 22:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds consistent padding for log level fields to improve log formatting readability and bumps the version to 1.1.1.

  • Modified log formatting to pad log levels to 5 characters for consistent alignment
  • Added comprehensive unit test to verify log level padding behavior
  • Updated version numbers and changelog documentation

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
SerpentModding/Properties/AssemblyInfo.cs Updated assembly version from 1.1.0 to 1.1.1
SerpentModding/Logging.cs Added PadRight(5) formatting to log level strings
SerpentModding.Tests/UnitTest.cs Added unit test to verify consistent 5-character padding for all log levels
CHANGELOG.md Added changelog entry for version 1.1.1 with padding feature description

Comment thread SerpentModding.Tests/UnitTest.cs Outdated
Comment thread CHANGELOG.md Outdated
Comment thread CHANGELOG.md Outdated
Comment on lines +2 to +3
- Logger: Einheitliche Padding-Formatierung f�r das LogLevel-Feld im Log eingef�hrt, sodass alle Level (z.B. INFO, FATAL) gleich breit erscheinen.
- Logger: Unittest erg�nzt, der pr�ft, dass das LogLevel im Log immer auf 5 Zeichen gepaddet ist.

Copilot AI Jul 29, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changelog entry contains German text and character encoding issues (erg�nzt, pr�ft). Consider using English: '- Logger: Added unit test that verifies LogLevel in logs is always padded to 5 characters.'

Suggested change
- Logger: Einheitliche Padding-Formatierung f�r das LogLevel-Feld im Log eingef�hrt, sodass alle Level (z.B. INFO, FATAL) gleich breit erscheinen.
- Logger: Unittest erg�nzt, der pr�ft, dass das LogLevel im Log immer auf 5 Zeichen gepaddet ist.
- Logger: Introduced uniform padding formatting for the LogLevel field in logs, ensuring all levels (e.g., INFO, FATAL) appear with equal width.
- Logger: Added unit test that verifies the LogLevel in logs is always padded to 5 characters.

Copilot uses AI. Check for mistakes.
Serpensin and others added 2 commits July 30, 2025 00:30
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@sonarqubecloud

Copy link
Copy Markdown

@Serpensin Serpensin merged commit 7491273 into master Jul 29, 2025
6 checks passed
Serpensin added a commit that referenced this pull request Jul 29, 2025
Update to version 1.1.1 with log level padding (#13)
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