CQ-editor icon indicating copy to clipboard operation
CQ-editor copied to clipboard

Reformat Default CQ-Editor Log Output to Reduce Character Width

Open jdegenstein opened this issue 3 years ago • 1 comments

Added a variable with a new format string to reduce the character width of logging output for better compatibility with smaller screens. Here is a comparison of the old and new format:

image

Here is a comparison of the default format versus the new format:

default_format_string = '[{record.time:%Y-%m-%d %H:%M:%S.%f%z}] {record.level_name}: {record.channel}: {record.message}'
new_format_string = '[{record.time:%H:%M:%S.%f%z}] {record.level_name}: {record.message}'

jdegenstein avatar Aug 04 '22 21:08 jdegenstein

Codecov Report

Merging #361 (6503365) into master (774c3c6) will increase coverage by 0.00%. The diff coverage is 66.66%.

:exclamation: Current head 6503365 differs from pull request most recent head 0abdfbc. Consider uploading reports for the commit 0abdfbc to get more accurate results

@@           Coverage Diff           @@
##           master     #361   +/-   ##
=======================================
  Coverage   88.66%   88.67%           
=======================================
  Files          19       19           
  Lines        1500     1501    +1     
  Branches      205      205           
=======================================
+ Hits         1330     1331    +1     
  Misses        137      137           
  Partials       33       33           
Impacted Files Coverage Δ
cq_editor/widgets/log.py 95.83% <66.66%> (+0.18%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

codecov[bot] avatar Aug 04 '22 21:08 codecov[bot]