Log things to the console.
A log handler that writes log entries into a file, and rolls this file at a requested interval (hourly, daily, or weekly).
A standard log formatter for scala.
A standard log formatter for scala. This extends the java built-in log formatter.
Truncation, exception formatting, multi-line logging, and time zones are handled in this class. Subclasses are called for formatting the line prefix, formatting the date, and determining the line terminator.
A base log handler for scala.
A base log handler for scala. This extends the java built-in handler and connects it with a formatter automatically.
Typically mixed into Exceptions
to indicate what Level
they should be logged at.
Typically mixed into Exceptions
to indicate what Level
they should be logged at.
Finagle's com.twitter.finagle.Failure
.
A lazy LogRecord that needs formatting
Wrapper around java.util.logging.LogRecord
.
Wrapper around java.util.logging.LogRecord
. Should only be accessed from a single thread.
Messages are formatted by Java's LogRecord using java.text.MessageFormat
whereas
this class uses a regular java.text.StringFormat
This class takes com.twitter.logging.Logger
into account when inferring the
sourceMethod
and sourceClass
names.
Scala wrapper for logging.
A factory to configure a Logger.
A factory to configure a Logger. Note that because Loggers are global, executing this factory has side-effects.
Name of the logging node. The default ("") is the top-level logger.
Log level for this node. Leaving it None is java's secret signal to use the parent logger's level.
Where to send log messages.
Override to have log messages stop at this node. Otherwise they are passed up to parent nodes.
Shim for java compatibility.
Shim for java compatibility. Make a new LoggerFactoryBuilder with LoggerFactory#newBuilder()
.
A com.twitter.app.App mixin to use for logging.
A com.twitter.app.App mixin to use for logging. Defines flags to configure the (default) logger setup. When adding logging to a twitter-server, mix in a trait that extends Logging but overrides factories.
A log handler class which delegates to another handler.
A log handler class which delegates to another handler. This allows to implement filtering log handlers.
Proxy handler that queues log records and publishes them in another thread to a nested handler.
Proxy handler that queues log records and publishes them in another thread to a nested handler. Useful for when a handler may block.
NOTE: ScribeHandler is usually used to write structured binary data.
NOTE: ScribeHandler is usually used to write structured binary data. When used in this way, wrapping this in other handlers, such as ThrottledHandler, which emit plain-text messages into the log, will corrupt the resulting data.
Mostly useful for unit tests: logging goes directly into a string buffer.
NOTE: ThrottledHandler emits plain-text messages regarding any throttling it does.
NOTE: ThrottledHandler emits plain-text messages regarding any throttling it does. This means that using it to wrap any logger which you expect to produce easily parseable, well-structured logs (as opposed to just plain text logs) will break your format. Specifically, DO NOT wrap Thrift Scribing loggers with ThrottledHandler.
Formatter that logs only the text of a log message, with no prefix (no date, etc).