Skip to content

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 [email protected]

@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 fgdrf force-pushed the F_LOGGING_SUPPORT branch from 46ee20f to 579f55f Compare November 2, 2021 14:15
@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
fgdrf added 3 commits January 13, 2022 15:48
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 <[email protected]>
Change-Id: I0b078706af6cdd32047cf3de2e43724c2e30b167
Change-Id: Id68b57afed3b376a6f18ad2ce20a976a7d27c666
Signed-off-by: Frank Gasdorf <[email protected]>
@fgdrf fgdrf force-pushed the F_LOGGING_SUPPORT branch from 60c7049 to 32c70c1 Compare January 13, 2022 15:58
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.

2 participants