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

Support for LogLevel in EffLog #6659

Merged
merged 36 commits into from
Jul 1, 2024
Merged

Support for LogLevel in EffLog #6659

merged 36 commits into from
Jul 1, 2024

Conversation

EquipableMC
Copy link
Contributor

Description

Added ways to declare severity when logging


Target Minecraft Versions: any
Requirements: none
Related Issues: none

Added wats to declare severity when logging
src/main/java/ch/njol/skript/effects/EffLog.java Outdated Show resolved Hide resolved
src/main/java/ch/njol/skript/effects/EffLog.java Outdated Show resolved Hide resolved
src/main/java/ch/njol/skript/effects/EffLog.java Outdated Show resolved Hide resolved
src/main/java/ch/njol/skript/effects/EffLog.java Outdated Show resolved Hide resolved
src/main/java/ch/njol/skript/effects/EffLog.java Outdated Show resolved Hide resolved
src/main/java/ch/njol/skript/effects/EffLog.java Outdated Show resolved Hide resolved
src/main/java/ch/njol/skript/effects/EffLog.java Outdated Show resolved Hide resolved
src/main/java/ch/njol/skript/effects/EffLog.java Outdated Show resolved Hide resolved
Updated `@Since` to include when severity to logs was added
Copy link
Contributor

@Fusezion Fusezion left a comment

Choose a reason for hiding this comment

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

I'll have more probably just for now here's this

src/main/java/ch/njol/skript/effects/EffLog.java Outdated Show resolved Hide resolved
src/main/java/ch/njol/skript/effects/EffLog.java Outdated Show resolved Hide resolved
Copy link
Contributor

@Fusezion Fusezion left a comment

Choose a reason for hiding this comment

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

More changes near you. Let's update the #toString(Event e, boolean debug) while we're here, to include severity tags

src/main/java/ch/njol/skript/effects/EffLog.java Outdated Show resolved Hide resolved
src/main/java/ch/njol/skript/effects/EffLog.java Outdated Show resolved Hide resolved
src/main/java/ch/njol/skript/effects/EffLog.java Outdated Show resolved Hide resolved
src/main/java/ch/njol/skript/effects/EffLog.java Outdated Show resolved Hide resolved
src/main/java/ch/njol/skript/effects/EffLog.java Outdated Show resolved Hide resolved
@sovdeeth sovdeeth added the enhancement Feature request, an issue about something that could be improved, or a PR improving something. label May 8, 2024
src/main/java/ch/njol/skript/effects/EffLog.java Outdated Show resolved Hide resolved
src/main/java/ch/njol/skript/effects/EffLog.java Outdated Show resolved Hide resolved
src/main/java/ch/njol/skript/effects/EffLog.java Outdated Show resolved Hide resolved
src/main/java/ch/njol/skript/effects/EffLog.java Outdated Show resolved Hide resolved
src/main/java/ch/njol/skript/effects/EffLog.java Outdated Show resolved Hide resolved
src/main/java/ch/njol/skript/effects/EffLog.java Outdated Show resolved Hide resolved
Copy link
Member

@sovdeeth sovdeeth left a comment

Choose a reason for hiding this comment

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

Also, have you actually tested this? I'd like to see a screenshot of the output.

src/main/java/ch/njol/skript/effects/EffLog.java Outdated Show resolved Hide resolved
src/main/java/ch/njol/skript/effects/EffLog.java Outdated Show resolved Hide resolved
src/main/java/ch/njol/skript/effects/EffLog.java Outdated Show resolved Hide resolved
@sovdeeth sovdeeth added the breaking changes Pull or feature requests that contain breaking changes (API, syntax, etc.) label May 8, 2024
@sovdeeth
Copy link
Member

sovdeeth commented May 8, 2024

adding breaking changes due to adding INFO to the output by default.

@EquipableMC
Copy link
Contributor Author

EquipableMC commented May 8, 2024

Also, have you actually tested this? I'd like to see a screenshot of the output.

I have not

@Fusezion
Copy link
Contributor

Fusezion commented May 8, 2024

adding breaking changes due to adding INFO to the output by default.

Sorry but how does this apply a breaking change? Very confused there.

@EquipableMC
Copy link
Contributor Author

Also, have you actually tested this? I'd like to see a screenshot of the output.

I have not

Okay now I have
image

@sovdeeth
Copy link
Member

sovdeeth commented May 8, 2024

Also, have you actually tested this? I'd like to see a screenshot of the output.

I have not

Okay now I have image

I'm mainly concerned about the other severities in console

@EquipableMC
Copy link
Contributor Author

EquipableMC commented May 8, 2024

Also, have you actually tested this? I'd like to see a screenshot of the output.

I have not

Okay now I have image

I'm mainly concerned about the other severities in console

I don't know why exactly warning/severe has a tab

image

@Fusezion
Copy link
Contributor

Fusezion commented May 8, 2024

alright so let's do an actual test equip

on load:
    log "info"
    log "warning" with severity of warning
    log "severe" with severity of severe

this should log on reload my guess is severe will not work but info and warning will

@EquipableMC
Copy link
Contributor Author

alright so let's do an actual test equip

on load:
    log "info"
    log "warning" with severity of warning
    log "severe" with severity of severe

this should log on reload my guess is severe will not work but info and warning will

image

yeah you're right

@sovdeeth
Copy link
Member

sovdeeth commented May 8, 2024

This is why I was talking about a RedirectingLogHandler in discord
You'll need it for warning/error.

src/main/java/ch/njol/skript/effects/EffLog.java Outdated Show resolved Hide resolved
src/main/java/ch/njol/skript/effects/EffLog.java Outdated Show resolved Hide resolved
@sovdeeth sovdeeth added the 2.9 Targeting a 2.9.X version release label Jun 28, 2024
@EquipableMC EquipableMC requested a review from sovdeeth July 1, 2024 19:24
@sovdeeth sovdeeth added the feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version. label Jul 1, 2024
@sovdeeth sovdeeth merged commit e65fe2f into SkriptLang:dev/feature Jul 1, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.9 Targeting a 2.9.X version release enhancement Feature request, an issue about something that could be improved, or a PR improving something. feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants