New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding new configuration option for logging of colors result #185

Closed
dzc34 opened this Issue Sep 29, 2018 · 1 comment

Comments

Projects
1 participant
@dzc34
Copy link
Member

dzc34 commented Sep 29, 2018

Observed behaviour

no logging of colors result

Expected behaviour

new configuration option ( loggingColorsResult) for logging of colors result :

  • compact = log message on 1 line
  • full = log message on several lines
  • no = no logging (default)

loggingColorsResult configuration can be override in the following file: /etc/contrast-finder/contrast-finder.conf

Compact format

INFO  o.a.c.w.controller.IndexController - config  defaultAlgorithm    : HSV
INFO  o.a.c.w.controller.IndexController - config  loggingColorsResult : compact
INFO  o.a.c.w.controller.IndexController - START|rgb(70,136,71)|#DFF0D8|4.5|HSV|false|374|40|3.61|END
INFO  o.a.c.w.controller.IndexController - START|rgb(70,136,71)|Red|4.5|HSV|false|838|57|1.08|END
INFO  o.a.c.w.controller.IndexController - START|rgb(70,136,71)|RebeccaPurple|4.5|HSV|false|811|40|1.95|END
INFO  o.a.c.w.controller.IndexController - START|rgb(70,136,71)|RebeccaPurple|4.5|Rgb|true|7259040|2|1.95|END

Full format

INFO  o.a.c.w.controller.IndexController - config  defaultAlgorithm    : HSV
INFO  o.a.c.w.controller.IndexController - config  loggingColorsResult : full
INFO  o.a.c.w.controller.IndexController - ---------------------
INFO  o.a.c.w.controller.IndexController - get  TXT       : rgb(70,136,71)
INFO  o.a.c.w.controller.IndexController - get  BG        : #DFF0D8
INFO  o.a.c.w.controller.IndexController - get  ratio     : 4.5
INFO  o.a.c.w.controller.IndexController - get  algo      : HSV
INFO  o.a.c.w.controller.IndexController - get  BG tested : false
INFO  o.a.c.w.controller.IndexController - tested         : 374
INFO  o.a.c.w.controller.IndexController - result         : 40
INFO  o.a.c.w.controller.IndexController - ratio          : 3.61
INFO  o.a.c.w.controller.IndexController - ---------------------
INFO  o.a.c.w.controller.IndexController - get  TXT       : rgb(70,136,71)
INFO  o.a.c.w.controller.IndexController - get  BG        : Red
INFO  o.a.c.w.controller.IndexController - get  ratio     : 4.5
INFO  o.a.c.w.controller.IndexController - get  algo      : HSV
INFO  o.a.c.w.controller.IndexController - get  BG tested : false
INFO  o.a.c.w.controller.IndexController - tested         : 838
INFO  o.a.c.w.controller.IndexController - result         : 57
INFO  o.a.c.w.controller.IndexController - ratio          : 1.08
INFO  o.a.c.w.controller.IndexController - ---------------------
INFO  o.a.c.w.controller.IndexController - get  TXT       : rgb(70,136,71)
INFO  o.a.c.w.controller.IndexController - get  BG        : RebeccaPurple
INFO  o.a.c.w.controller.IndexController - get  ratio     : 4.5
INFO  o.a.c.w.controller.IndexController - get  algo      : HSV
INFO  o.a.c.w.controller.IndexController - get  BG tested : false
INFO  o.a.c.w.controller.IndexController - tested         : 811
INFO  o.a.c.w.controller.IndexController - result         : 40
INFO  o.a.c.w.controller.IndexController - ratio          : 1.95
INFO  o.a.c.w.controller.IndexController - ---------------------
INFO  o.a.c.w.controller.IndexController - get  TXT       : rgb(70,136,71)
INFO  o.a.c.w.controller.IndexController - get  BG        : RebeccaPurple
INFO  o.a.c.w.controller.IndexController - get  ratio     : 4.5
INFO  o.a.c.w.controller.IndexController - get  algo      : Rgb
INFO  o.a.c.w.controller.IndexController - get  BG tested : true
INFO  o.a.c.w.controller.IndexController - tested         : 7259040
INFO  o.a.c.w.controller.IndexController - result         : 2
INFO  o.a.c.w.controller.IndexController - ratio          : 1.95

@dzc34 dzc34 changed the title added new configuration option for logging of colors result Adding new configuration option for logging of colors result Sep 29, 2018

@dzc34

This comment has been minimized.

Copy link
Member

dzc34 commented Sep 29, 2018

# fulle format
./docker/build_and_run-with-docker.sh -d docker/SNAPSHOT-local/test_config-file/51.loggingColorsResult_full  -l --source-dir $(pwd) 
 docker logs -f  contrast.finder   

# compact format
./docker/build_and_run-with-docker.sh -d docker/SNAPSHOT-local/test_config-file/50.loggingColorsResult_compact  -l --source-dir $(pwd) 
 docker logs -f  contrast.finder  

@dzc34 dzc34 closed this in 1d5b339 Sep 29, 2018

dzc34 added a commit that referenced this issue Nov 6, 2018

Contrast-Finder v0.9.3
----------------------

  set version to 0.9.3
  updated changelog
  updated i18n files
  typo
  Upgrading outdated dependencies: fixed #190, fixed #191 and fixed #192
  Updated contributor doc
  Fixde #189  Failed to execute goal maven-surefire
  updated Other-contrast-tools.md
  Doc - Updated resources directory
  Doc - Added "ressources" directory
  fixed #188 - Webapp: refactor languages switcher
  Fixed #187 - Added new configuration options: available languages and default language
  updated bookmarks file
  Fixed #186, fixed #185, fixed #184 and fixed #183
  updated .gitignore
  fix ColorFinderHsv.java debug
  updated Other-contrast-tools.md (add "Link Contrast Checker" by webaim.org)
  Updated humans.txt file + fixed some external links in the documentation (Sonarwhal become Webhint)
  fixed #180, fixed #181, fixed #182
  set version to 0.9.3-SNAPSHOT

@dzc34 dzc34 added this to Done in v0.9.3 Nov 10, 2018

@dzc34 dzc34 added this to the v0.9.3 milestone Nov 10, 2018

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