Skip to content

Make the log level configurable and add timestamps to the log output - #163

Open
afroch wants to merge 3 commits into
mainfrom
configurable-log-level
Open

Make the log level configurable and add timestamps to the log output#163
afroch wants to merge 3 commits into
mainfrom
configurable-log-level

Conversation

@afroch

@afroch afroch commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Summary

This pull request introduces the following changes

  • The log level can now be set with the UPP_LOG_LEVEL environment variable or with the --log-level flag, where the flag wins over the environment variable
  • All log messages now carry the date and time
  • Debug and info messages are written to stdout while warnings and errors go to stderr, so in a batch job the .err file only contains the problems
  • The console width is taken from the terminal instead of being hard coded, and the section banners now adapt to it

Relates to the following issues

  • None

Conformity

afroch added 2 commits August 26, 2026 15:31
The log level can now be set with the UPP_LOG_LEVEL environment variable or
with the --log-level flag, which wins over the environment variable. Every log
message carries the date and time, debug and info messages are written to
stdout and warnings and above to stderr, so in a batch job the .err file only
contains the problems. The console width is taken from the terminal instead of
being hard coded, and the section banners adapt to it.
@afroch afroch self-assigned this Aug 26, 2026
@afroch afroch added the enhancement New feature or request label Aug 26, 2026
@github-actions

Copy link
Copy Markdown
Contributor

@codecov

codecov Bot commented Aug 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.73%. Comparing base (8566c5d) to head (81d2d95).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #163      +/-   ##
==========================================
+ Coverage   95.34%   95.73%   +0.39%     
==========================================
  Files          25       25              
  Lines        2340     2367      +27     
==========================================
+ Hits         2231     2266      +35     
+ Misses        109      101       -8     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant