public enum YamlLogging extends Enum<YamlLogging>
| Modifier and Type | Class and Description |
|---|---|
static class |
YamlLogging.YamlLoggingLevel
Enum representing the various logging levels for Yaml.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
setAll(boolean flag)
Sets the logging flags for all message types (reads/writes for both client and server).
|
static void |
setAll(@NotNull YamlLogging.YamlLoggingLevel level)
Sets the logging flags for all message types based on the provided
YamlLogging.YamlLoggingLevel. |
static boolean |
showClientReads()
Checks whether logging for client reads is enabled.
|
static void |
showClientReads(boolean logging)
Sets the flag to determine whether client reads should be logged.
|
static boolean |
showClientWrites()
Checks whether logging for client writes is enabled.
|
static void |
showClientWrites(boolean logging)
Sets the flag to determine whether client writes should be logged.
|
static boolean |
showHeartBeats()
Checks whether heartbeat logging is enabled.
|
static void |
showHeartBeats(boolean log)
Sets the flag to determine whether heartbeats should be logged.
|
static boolean |
showServerReads()
Checks whether logging for server reads is enabled.
|
static void |
showServerReads(boolean logging)
Sets the flag to determine whether server reads should be logged.
|
static boolean |
showServerWrites()
Checks whether logging for server writes is enabled.
|
static void |
showServerWrites(boolean logging)
Sets the flag to determine whether server writes should be logged.
|
static YamlLogging |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static YamlLogging[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static @NotNull String |
writeMessage()
Retrieves the current message associated with a write operation.
|
static void |
writeMessage(@NotNull String s)
Updates the message associated with a write operation.
|
@NotNull public static volatile @NotNull String title
public static YamlLogging[] values()
for (YamlLogging c : YamlLogging.values()) System.out.println(c);
public static YamlLogging valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static void setAll(boolean flag)
flag - The boolean value to set for all logging flags.public static void setAll(@NotNull
@NotNull YamlLogging.YamlLoggingLevel level)
YamlLogging.YamlLoggingLevel.level - The YamlLogging.YamlLoggingLevel determining whether to set or unset the logging flags.public static boolean showClientReads()
true if logging for client reads is enabled; false otherwise.public static void writeMessage(@NotNull
@NotNull String s)
s - The new message to be set.public static void showServerWrites(boolean logging)
logging - true to enable logging for server writes; false to disable.public static boolean showClientWrites()
true if logging for client writes is enabled; false otherwise.@NotNull public static @NotNull String writeMessage()
public static boolean showHeartBeats()
true if heartbeat logging is enabled; false otherwise.public static boolean showServerReads()
true if logging for server reads is enabled; false otherwise.public static void showHeartBeats(boolean log)
log - true to enable heartbeat logging; false to disable.public static void showClientWrites(boolean logging)
logging - true to enable logging for client writes; false to disable.public static void showClientReads(boolean logging)
logging - true to enable logging for client reads; false to disable.public static boolean showServerWrites()
true if logging for server writes is enabled; false otherwise.public static void showServerReads(boolean logging)
logging - true to enable logging for server reads; false to disable.Copyright © 2024. All rights reserved.