Title: Decide how to support logging errors and warnings · Issue #13 · scijava/scijava · GitHub
Open Graph Title: Decide how to support logging errors and warnings · Issue #13 · scijava/scijava
X Title: Decide how to support logging errors and warnings · Issue #13 · scijava/scijava
Description: Many ops in the old imagej-ops framework, such as this one or this one attempt to log errors or warnings. Sometimes this is in place of throwing some RuntimeException (as in the case of the former) or other times it is just saying someth...
Open Graph Description: Many ops in the old imagej-ops framework, such as this one or this one attempt to log errors or warnings. Sometimes this is in place of throwing some RuntimeException (as in the case of the former)...
X Description: Many ops in the old imagej-ops framework, such as this one or this one attempt to log errors or warnings. Sometimes this is in place of throwing some RuntimeException (as in the case of the former)...
Opengraph URL: https://github.com/scijava/scijava/issues/13
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Decide how to support logging errors and warnings","articleBody":"Many ops in the old imagej-ops framework, such as [this one](https://github.com/imagej/imagej-ops/blob/1820948f097f098878cf5d5745d39c63cf2e6049/src/main/java/net/imagej/ops/threshold/minError/ComputeMinErrorThreshold.java#L59) or [this one](https://github.com/imagej/imagej-ops/blob/1820948f097f098878cf5d5745d39c63cf2e6049/src/main/java/net/imagej/ops/threshold/rosin/ComputeRosinThreshold.java#L59) attempt to log errors or warnings. Sometimes this is in place of throwing some `RuntimeException` (as in the case of the former) or other times it is just saying something about the data (as in the case of the latter). We need to find a consistent way to deal with the situations in which we would like to pass on messages/errors.\r\n\r\nRegardless of the option, no messages should be allowed as secondary outputs.\r\n\r\n**Potential solutions:**\r\n* Use Scijava's `Logger`\r\n* Create dedicated error subclasses (although this will only solve the issues with errors, not with the logging)\r\n* Not allow any sort of logging","author":{"url":"https://github.com/gselzer","@type":"Person","name":"gselzer"},"datePublished":"2019-05-14T21:09:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/13/scijava/issues/13"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:abed1166-05a2-b77a-e550-6e2e4076e1fb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8454:22BD75:833560:B7DC53:696A59FD |
| html-safe-nonce | 17d9179c3e76e597f66e31280c4262bb2131d16e8d0b102d8387e32d44524a6e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDU0OjIyQkQ3NTo4MzM1NjA6QjdEQzUzOjY5NkE1OUZEIiwidmlzaXRvcl9pZCI6IjY5MTE4MDg5NzQ3ODQ5Nzc0MDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 531753abdd102c5db66b7241a247ca8908ffc68e10900d341aeff2c7ec996325 |
| hovercard-subject-tag | issue:444126406 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/scijava/scijava/13/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a50bda6ddd9b39a6fec970245c8787873a44e1ce9003db4e7e43b3910cc2d048/scijava/scijava/issues/13 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a50bda6ddd9b39a6fec970245c8787873a44e1ce9003db4e7e43b3910cc2d048/scijava/scijava/issues/13 |
| og:image:alt | Many ops in the old imagej-ops framework, such as this one or this one attempt to log errors or warnings. Sometimes this is in place of throwing some RuntimeException (as in the case of the former)... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gselzer |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3f871c8e07f0ae1886fa8dac284166d28b09ad5bada6476fc10b674e489788ef |
| turbo-cache-control | no-preview |
| go-import | github.com/scijava/scijava git https://github.com/scijava/scijava.git |
| octolytics-dimension-user_id | 1262770 |
| octolytics-dimension-user_login | scijava |
| octolytics-dimension-repository_id | 85618439 |
| octolytics-dimension-repository_nwo | scijava/scijava |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 85618439 |
| octolytics-dimension-repository_network_root_nwo | scijava/scijava |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 63c426b30d262aba269ef14c40e3c817b384cd61 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width