- java.lang.Object
-
- io.helidon.build.util.SystemLogWriter
-
- All Implemented Interfaces:
Log.Writer
public final class SystemLogWriter extends Object implements Log.Writer
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SystemLogWritercreate(Log.Level level)Returns a new instance with the given level.booleanisDebugEnabled()Returns whether or not debug messages will be written.voidwrite(Log.Level level, Throwable thrown, String message, Object... args)Writes the message and throwable if at or above the given level.
-
-
-
Method Detail
-
create
public static SystemLogWriter create(Log.Level level)
Returns a new instance with the given level.- Parameters:
level- The level at or above which messages should be logged.- Returns:
- The instance.
-
isDebugEnabled
public boolean isDebugEnabled()
Description copied from interface:Log.WriterReturns whether or not debug messages will be written.- Specified by:
isDebugEnabledin interfaceLog.Writer- Returns:
trueif enabled.
-
write
public void write(Log.Level level, Throwable thrown, String message, Object... args)
Description copied from interface:Log.WriterWrites the message and throwable if at or above the given level.- Specified by:
writein interfaceLog.Writer- Parameters:
level- The level.thrown- The throwable. May benull.message- The message.args- The message args.
-
-