F - the LogFormatter typeA - the LogAppender typepublic class FormattingLoggerFactory<F extends LogFormatter,A extends LogAppender<F>> extends AbstractLoggerFactory<FormattingLogger<F,A>>
LoggerFactory that creates FormattingLogger objects.defaultLevelPropertyName, systemDefaultLevel| Constructor and Description |
|---|
FormattingLoggerFactory(A appender)
Construct a
FormattingLoggerFactory with the provided LogAppender. |
getCachedLogger, getDefaultClock, getDefaultLevel, putCachedLogger, setDefaultClock, setDefaultLevelpublic FormattingLoggerFactory(A appender)
FormattingLoggerFactory with the provided LogAppender.appender - the LogAppenderpublic FormattingLogger<F,A> getLogger(String name, net.pwall.log.Level level, Clock clock)
FormattingLogger with the specified name, level and clock.name - the namelevel - the levelclock - the clockFormattingLoggerLoggerException - if the name is null, empty or contains non-ASCII characterspublic static FormattingLoggerFactory<BasicFormatter,PrintStreamAppender<BasicFormatter>> getBasic(PrintStream printStream)
printStream - the PrintStreamFormattingLoggerFactorypublic static FormattingLoggerFactory<BasicFormatter,PrintStreamAppender<BasicFormatter>> getBasic()
FormattingLoggerFactorypublic static <FF extends LogFormatter> FormattingLoggerFactory<FF,PrintStreamAppender<FF>> getFactory(FF formatter)
FormattingLoggerFactory that uses a PrintStreamAppender (with the default
PrintStream) and the given LogFormatter.FF - the type of the LogFormatterformatter - the LogFormatterFormattingLoggerFactorypublic static <FF extends LogFormatter> FormattingLoggerFactory<FF,PrintStreamAppender<FF>> getFactory(PrintStream printStream, FF formatter)
FormattingLoggerFactory that uses a PrintStreamAppender with the given PrintStream
and LogFormatter.FF - the type of the LogFormatterprintStream - the PrintStreamformatter - the LogFormatterFormattingLoggerFactorypublic static <FF extends LogFormatter,AA extends LogAppender<FF>> FormattingLoggerFactory<FF,AA> getFactory(AA appender)
FormattingLoggerFactory that uses a given LogAppender.AA - the type of the LogAppenderFF - the type of the LogFormatterappender - the LogAppenderFormattingLoggerFactoryCopyright © 2024. All rights reserved.