Rename LogLevel -> LogLevelEvent

The source code now looks better :)
This commit is contained in:
JeremyStar™ 2024-09-28 21:46:20 +02:00
parent 9922c672f6
commit 5e829771a7
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D
2 changed files with 8 additions and 7 deletions

View file

@ -20,6 +20,7 @@
package de.staropensource.engine.base.internal.implementation.placeholder.logger;
import de.staropensource.engine.base.implementable.Placeholder;
import de.staropensource.engine.base.type.logging.LogLevel;
import org.jetbrains.annotations.NotNull;
/**
@ -29,22 +30,22 @@ import org.jetbrains.annotations.NotNull;
* @since v1-alpha0
*/
@SuppressWarnings({ "unused" })
public final class LogLevel implements Placeholder {
public final class LogLevelEvent implements Placeholder {
/**
* The {@link de.staropensource.engine.base.type.logging.LogLevel} to use.
* Contains the {@link LogLevel} to use.
*
* @since v1-alpha0
*/
@NotNull
private final de.staropensource.engine.base.type.logging.LogLevel level;
private final LogLevel level;
/**
* Constructs this class.
* Creates and initializes an instance of this event.
*
* @param level {@link de.staropensource.engine.base.type.logging.LogLevel} to use
* @param level {@link LogLevel} to use
* @since v1-alpha0
*/
public LogLevel(@NotNull de.staropensource.engine.base.type.logging.LogLevel level) {
public LogLevelEvent(@NotNull LogLevel level) {
this.level = level;
}

View file

@ -150,7 +150,7 @@ public final class Logger {
// Replace logger placeholders (no colors)
format = new LogClass(issuerClass).replace(format);
format = new de.staropensource.engine.base.internal.implementation.placeholder.logger.LogLevel(level).replace(format);
format = new LogLevelEvent(level).replace(format);
format = new LogMetadata(issuerMetadata).replace(format);
format = new LogOrigin(issuerOrigin).replace(format);
format = new LogPackage(issuerClass).replace(format);