public static class FormattedLogProvider.Builder extends Object
FormattedLogProvider| Constructor and Description |
|---|
FormattedLogProvider.Builder() |
| Modifier and Type | Method and Description |
|---|---|
FormattedLogProvider |
toOutputStream(OutputStream out)
Creates a
FormattedLogProvider instance that writes messages to an OutputStream. |
FormattedLogProvider |
toOutputStream(org.neo4j.function.Supplier<OutputStream> outSupplier)
Creates a
FormattedLogProvider instance that writes messages to OutputStreams obtained from the specified
Supplier. |
FormattedLogProvider |
toPrintWriter(PrintWriter writer)
Creates a
FormattedLogProvider instance that writes messages to a PrintWriter. |
FormattedLogProvider |
toPrintWriter(org.neo4j.function.Supplier<PrintWriter> writerSupplier)
Creates a
FormattedLogProvider instance that writes messages to PrintWriters obtained from the specified
Supplier. |
FormattedLogProvider |
toWriter(Writer writer)
Creates a
FormattedLogProvider instance that writes messages to a Writer. |
FormattedLogProvider.Builder |
withLogLevel(FormattedLog.Level level)
Use the specified log
FormattedLog.Level for all Logs by default. |
FormattedLogProvider.Builder |
withoutAutoFlush()
Disable auto flushing.
|
FormattedLogProvider.Builder |
withoutRenderingContext()
Disable rendering of the context (or class name) in each output line.
|
FormattedLogProvider.Builder |
withTimeZone(TimeZone timezone)
Set the timezone for datestamps in the log
|
FormattedLogProvider.Builder |
withUTCTimeZone()
Set the timezone for datestamps in the log
|
public FormattedLogProvider.Builder withoutRenderingContext()
public FormattedLogProvider.Builder withUTCTimeZone()
public FormattedLogProvider.Builder withTimeZone(TimeZone timezone)
timezone - the timezone to use for datestampspublic FormattedLogProvider.Builder withLogLevel(FormattedLog.Level level)
FormattedLog.Level for all Logs by default.level - the log level to use as a defaultpublic FormattedLogProvider.Builder withoutAutoFlush()
public FormattedLogProvider toOutputStream(OutputStream out)
FormattedLogProvider instance that writes messages to an OutputStream.out - An OutputStream to write toFormattedLogProvider instance that writes to the specified OutputStreampublic FormattedLogProvider toOutputStream(org.neo4j.function.Supplier<OutputStream> outSupplier)
FormattedLogProvider instance that writes messages to OutputStreams obtained from the specified
Supplier. The OutputStream is obtained from the Supplier before every log message is written.outSupplier - A supplier for an output stream to write toFormattedLogProvider instancepublic FormattedLogProvider toWriter(Writer writer)
FormattedLogProvider instance that writes messages to a Writer.writer - A Writer to write toFormattedLogProvider instance that writes to the specified Writerpublic FormattedLogProvider toPrintWriter(PrintWriter writer)
FormattedLogProvider instance that writes messages to a PrintWriter.writer - A PrintWriter to write toFormattedLogProvider instance that writes to the specified PrintWriterpublic FormattedLogProvider toPrintWriter(org.neo4j.function.Supplier<PrintWriter> writerSupplier)
FormattedLogProvider instance that writes messages to PrintWriters obtained from the specified
Supplier. The PrintWriter is obtained from the Supplier before every log message is written.writerSupplier - A supplier for a PrintWriter to write toFormattedLogProvider instance that writes to the specified PrintWriterCopyright © 2002–2015 The Neo4j Graph Database Project. All rights reserved.