Skip to content

Conversation

@Andre601
Copy link
Collaborator

@Andre601 Andre601 commented Jul 22, 2021

Pull Request

Type

  • Internal change (Doesn't affect end-user).
  • External change (Does affect end-user).
  • Wiki (Changes towards the Wiki).
  • Other: __________

Description

Exposes some void methods within the PlaceholderExpansion class that allows expansions to log any messages to the console by simply calling this.log(Level, String) or one of the convenience methods.

I only focused on the bare minimum methods that have a String and didn't look for any that also accept throwables and alike. If requested would I implement those too.

The goal of this PR is to add a way to simplify methods of logging things.
Right now will expansions, if they want to log stuff in some way need to either use getPlaceholderAPI().getLogger() for each message to log, or create a local Logger instance to use instead.

In addition, do these methods log the messages with a [<expansion name>] prefix applied.

Closes N/A

Andre601 and others added 2 commits July 11, 2021 01:37
* Add contributing and expansion section

* Start using new Issue template system

* Create bug_report.yml

* Rename feature_request.md to feature_request_old.md

* Create feature_request.yml

* fix unique name

* Update feature_request_old.md

* Add Checkboxes

* Add checkboxes

* disable default issue body

* Delete bug_report_old.md

* Delete feature_request_old.md

* Rename bug_report_new.yml to bug_report.yml

* Check if deleting this fixed the PR...

* Use description in favour of about

* improve feature_request.md

* Update bug_report.yml

* Assign "Type: Issue (Unconfirmed)" label

* Use lists and not comma-separated string

* Update feature_request.yml

* Use id option for error and dump fields

* Add field for logs

* Remove deprecated issue_body type

* Update feature_request.yml

* Improve description of bug_report.yml

* Initial 1.17 Changes

* add render

* Revert build.gradle dependencies change

* Fixed duplicate files

* Initial test on adventure

* started moving to pure adventure

* finished kyori impl

* added 1.17 to nmsversion (what does this even do)

* removed dev for release

* added dev back

Co-authored-by: PiggyPiglet <PiggyPiglet@users.noreply.github.com>
Co-authored-by: darbyjack <admin@glaremasters.me>
Co-authored-by: PiggyPiglet <noreply@piggypiglet.me>
@Andre601 Andre601 added the Type: Enhancement New feature or request label Aug 8, 2021
@Andre601 Andre601 added Type: New Feature A new feature for PlaceholderAPI and removed Type: Enhancement New feature or request labels Oct 9, 2021
@PiggyPiglet PiggyPiglet changed the base branch from development to master December 3, 2021 04:57
@PiggyPiglet PiggyPiglet merged commit 18fb194 into master Dec 3, 2021
@Andre601 Andre601 deleted the feature/add-logging-options branch February 22, 2022 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: New Feature A new feature for PlaceholderAPI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants