public static final class PoolLogger.Builder extends Object
PoolLogger
objects.Modifier and Type | Method and Description |
---|---|
PoolLogger |
build()
Creates a new
PoolLogger object based on the settings of this builder. |
PoolLogger.Builder |
withLoggerClass(Class<?> loggerClass)
Sets the name of the logger to use.
|
PoolLogger.Builder |
withLoggerName(String loggerName)
Sets the name of the logger to use.
|
PoolLogger.Builder |
withMessagePrefix(String messagePrefix)
Sets the message prefix to use.
|
PoolLogger.Builder |
withObjectPrefix(String objectPrefix)
Sets the object prefix to use.
|
public PoolLogger.Builder withLoggerName(String loggerName)
Pool
class.loggerName
- The name of the logger to use.NullPointerException
- If the given logger name is null
.public PoolLogger.Builder withLoggerClass(Class<?> loggerClass)
withLoggerName(String)
with the given class' fully qualified name.loggerClass
- The class to use for the name of the logger to use.NullPointerException
- If the given logger class is null
.public PoolLogger.Builder withMessagePrefix(String messagePrefix)
messagePrefix
- The message prefix to use.NullPointerException
- If the given message prefix is null
.public PoolLogger.Builder withObjectPrefix(String objectPrefix)
objectPrefix
- The object prefix to use.NullPointerException
- If the given object prefix is null
.public PoolLogger build()
PoolLogger
object based on the settings of this builder.PoolLogger
object.Copyright © 2022. All rights reserved.