use of java.lang.System.Logger in project Bytecoder by mirkosertic.
the class BootstrapLogger method log.
@Override
public void log(Level level, ResourceBundle bundle, String format, Object... params) {
if (checkBootstrapping()) {
push(LogEvent.valueOf(this, level, bundle, format, params));
} else {
final Logger spi = holder.wrapped();
spi.log(level, bundle, format, params);
}
}
use of java.lang.System.Logger in project Bytecoder by mirkosertic.
the class BootstrapLogger method log.
@Override
public void log(Level level, Object obj) {
if (checkBootstrapping()) {
Logger.super.log(level, obj);
} else {
final Logger spi = holder.wrapped();
spi.log(level, obj);
}
}
use of java.lang.System.Logger in project Bytecoder by mirkosertic.
the class BootstrapLogger method log.
@Override
public void log(Level level, String format, Object... params) {
if (checkBootstrapping()) {
push(LogEvent.valueOf(this, level, null, format, params));
} else {
final Logger spi = holder.wrapped();
spi.log(level, format, params);
}
}
use of java.lang.System.Logger in project Bytecoder by mirkosertic.
the class BootstrapLogger method log.
@Override
public void log(Level level, Supplier<String> msgSupplier) {
if (checkBootstrapping()) {
push(LogEvent.valueOf(this, level, msgSupplier));
} else {
final Logger spi = holder.wrapped();
spi.log(level, msgSupplier);
}
}
use of java.lang.System.Logger in project Bytecoder by mirkosertic.
the class BootstrapLogger method flush.
// Flushes the queue of pending LogEvents to the logger.
void flush(LogEvent event) {
assert event.bootstrap == this;
if (event.platformLevel != null) {
PlatformLogger.Bridge concrete = holder.getConcretePlatformLogger(this);
LogEvent.log(event, concrete);
} else {
Logger concrete = holder.getConcreteLogger(this);
LogEvent.log(event, concrete);
}
}
Aggregations