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
Changes from 7 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
0217ab5
Improved EffLog
EquipableMC May 8, 2024
a8572a1
Update EffLog.java
EquipableMC May 8, 2024
66ad0c1
Update EffLog.java
EquipableMC May 8, 2024
ad9c652
Update EffLog.java
EquipableMC May 8, 2024
6d5d7ba
Update EffLog.java
EquipableMC May 8, 2024
2a57b56
Merge branch 'dev/feature' into dev/feature
EquipableMC May 8, 2024
570d764
Update EffLog.java
EquipableMC May 8, 2024
413d717
Update EffLog.java
EquipableMC May 8, 2024
d12f89b
Update EffLog.java
EquipableMC May 8, 2024
ef9ab68
Update EffLog.java
EquipableMC May 8, 2024
c09984f
Merge branch 'SkriptLang:dev/feature' into dev/feature
EquipableMC May 10, 2024
806cbcc
Update EffLog.java
EquipableMC May 10, 2024
fc37d4f
Update EffLog.java
EquipableMC May 12, 2024
080515c
Merge branch 'dev/feature' into dev/feature
sovdeeth May 13, 2024
078265c
Update EffLog.java
EquipableMC May 13, 2024
244fa08
Update EffLog.java
EquipableMC May 13, 2024
3500a4b
Update EffLog.java
EquipableMC May 13, 2024
797573e
Update EffLog.java
EquipableMC May 13, 2024
b24be61
Update EffLog.java
EquipableMC May 16, 2024
e0faf82
Update EffLog.java
EquipableMC May 19, 2024
a2b117f
Update EffLog.java
EquipableMC May 27, 2024
694024b
Update EffLog.java
EquipableMC Jun 1, 2024
55e92ba
Update EffLog.java
EquipableMC Jun 1, 2024
5081bae
Update EffLog.java
EquipableMC Jun 5, 2024
b4675df
Merge branch 'dev/feature' into dev/feature
Moderocky Jun 11, 2024
b8b5b7d
Update EffLog.java
EquipableMC Jun 11, 2024
88ef745
Merge branch 'dev/feature' into dev/feature
Moderocky Jun 28, 2024
baefbfb
Merge branch 'dev/feature' into dev/feature
EquipableMC Jun 28, 2024
4009d45
Update EffLog.java
EquipableMC Jun 28, 2024
22ab0ec
Merge branch 'dev/feature' of https://github.com/EquipableMC/Skript i…
EquipableMC Jun 28, 2024
0cb99cc
Update EffLog.java
EquipableMC Jun 28, 2024
d8f4c4b
Update EffLog.java
EquipableMC Jun 28, 2024
6406a05
Merge branch 'dev/feature' into dev/feature
sovdeeth Jun 28, 2024
251419c
Update EffLog.java
EquipableMC Jul 1, 2024
cebf1c3
Update EffLog.java
EquipableMC Jul 1, 2024
bb279ee
Merge branch 'dev/feature' into dev/feature
sovdeeth Jul 1, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/main/java/ch/njol/skript/effects/EffLog.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@
import java.util.HashMap;
import java.util.Locale;
import java.util.logging.Level;
import java.util.logging.Logger;

import ch.njol.skript.log.RedirectingLogHandler;
import org.skriptlang.skript.lang.script.Script;
import org.bukkit.event.Event;
import org.eclipse.jdt.annotation.Nullable;
Expand Down Expand Up @@ -143,8 +141,9 @@ protected void execute(Event event) {

@Override
public String toString(@Nullable Event event, boolean debug) {
String lowerCaseLogLevel = logLevel.toString();
EquipableMC marked this conversation as resolved.
Show resolved Hide resolved
return "log " + messages.toString(event, debug)
+ (files != null ? " to " + files.toString(event, debug) : "")
+ (logLevel != Level.INFO ? "with severity " + logLevel : "");
+ (logLevel != Level.INFO ? "with severity " + lowerCaseLogLevel.toLowerCase(Locale.ENGLISH) : "");
EquipableMC marked this conversation as resolved.
Show resolved Hide resolved
}
EquipableMC marked this conversation as resolved.
Show resolved Hide resolved
}
Loading