Skip to content
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

introduce LoggingSupport #585

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

Conversation

fgdrf
Copy link
Contributor

@fgdrf fgdrf commented Nov 2, 2021

to have a common way to log messages overall modules. Reduces
code-duplications as well, if deprecated methods are removed
in the future

Signed-off-by: Frank Gasdorf fgdrf@users.sourceforge.net

@fgdrf fgdrf added this to the 2.3.0 milestone Nov 2, 2021
@fgdrf fgdrf requested a review from egouge November 2, 2021 11:17
@fgdrf
Copy link
Contributor Author

fgdrf commented Nov 2, 2021

@sschulz92 @ybnkv @olsmn What do you think about this aproach?

Throwables are logged as warnings
Execptions are logged as errors
everything else is just an info

Copy link
Contributor

@sschulz92 sschulz92 left a comment

Choose a reason for hiding this comment

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

In general this is a good approach I think :)

@fgdrf
Copy link
Contributor Author

fgdrf commented Nov 2, 2021

I'm going to add few lines to release-notes and I guess I've to grep through documentations:

IStatus status = new Status(IStatus.ERROR, CatalogPlugin.ID, "error message");
CatalogPlugin.getDefault().getLog().log( status );

since ID is not necessary anymore for logging because of usage Plugin.getBundle().getSymbolicName() in LoggingSupport.

@fgdrf
Copy link
Contributor Author

fgdrf commented Nov 2, 2021

potential candidats (RST) to update to LoggingSupport:

  • docs/devel/en/drag_and_drop.rst
  • docs/devel/en/catalog.rst
  • docs/devel/en/using_udigapplication.rst
  • docs/devel/en/export_sld_plugin_tutorial.rst
  • docs/devel/en/edit_tools.rst

@fgdrf fgdrf marked this pull request as draft November 4, 2021 22:08
@fgdrf fgdrf force-pushed the F_LOGGING_SUPPORT branch 3 times, most recently from 31d803e to 60c7049 Compare November 6, 2021 22:54
@fgdrf fgdrf removed this from the 2.3.0 milestone Dec 13, 2021
to have a common way to log messages overall modules. Reduces
code-duplications as well, if deprecated methods are removed
in the future

Signed-off-by: Frank Gasdorf <fgdrf@users.sourceforge.net>
Change-Id: I0b078706af6cdd32047cf3de2e43724c2e30b167
Change-Id: Id68b57afed3b376a6f18ad2ce20a976a7d27c666
Signed-off-by: Frank Gasdorf <fgdrf@users.sourceforge.net>
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.

None yet

2 participants