Rename LogLevel -> LogLevelEvent
The source code now looks better :)
This commit is contained in:
parent
9922c672f6
commit
5e829771a7
2 changed files with 8 additions and 7 deletions
|
@ -20,6 +20,7 @@
|
||||||
package de.staropensource.engine.base.internal.implementation.placeholder.logger;
|
package de.staropensource.engine.base.internal.implementation.placeholder.logger;
|
||||||
|
|
||||||
import de.staropensource.engine.base.implementable.Placeholder;
|
import de.staropensource.engine.base.implementable.Placeholder;
|
||||||
|
import de.staropensource.engine.base.type.logging.LogLevel;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -29,22 +30,22 @@ import org.jetbrains.annotations.NotNull;
|
||||||
* @since v1-alpha0
|
* @since v1-alpha0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings({ "unused" })
|
@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
|
* @since v1-alpha0
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@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
|
* @since v1-alpha0
|
||||||
*/
|
*/
|
||||||
public LogLevel(@NotNull de.staropensource.engine.base.type.logging.LogLevel level) {
|
public LogLevelEvent(@NotNull LogLevel level) {
|
||||||
this.level = level;
|
this.level = level;
|
||||||
}
|
}
|
||||||
|
|
|
@ -150,7 +150,7 @@ public final class Logger {
|
||||||
|
|
||||||
// Replace logger placeholders (no colors)
|
// Replace logger placeholders (no colors)
|
||||||
format = new LogClass(issuerClass).replace(format);
|
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 LogMetadata(issuerMetadata).replace(format);
|
||||||
format = new LogOrigin(issuerOrigin).replace(format);
|
format = new LogOrigin(issuerOrigin).replace(format);
|
||||||
format = new LogPackage(issuerClass).replace(format);
|
format = new LogPackage(issuerClass).replace(format);
|
||||||
|
|
Loading…
Reference in a new issue