Packages

p

com.twitter

logging

package logging

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. logging
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class ConsoleHandler extends Handler

    Log things to the console.

  2. class FileHandler extends Handler

    A log handler that writes log entries into a file, and rolls this file at a requested interval (hourly, daily, or weekly).

  3. class Formatter extends java.util.logging.Formatter

    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.

  4. abstract class Handler extends java.util.logging.Handler

    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.

  5. type HandlerFactory = () ⇒ Handler
  6. trait HasLogLevel extends AnyRef

    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.

    See also

    Finagle's com.twitter.finagle.Failure.

  7. class LazyLogRecord extends LogRecord
  8. class LazyLogRecordUnformatted extends LazyLogRecord

    A lazy LogRecord that needs formatting

  9. sealed abstract class Level extends java.util.logging.Level
  10. class LogRecord extends java.util.logging.LogRecord

    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.

  11. class Logger extends AnyRef

    Scala wrapper for logging.

  12. case class LoggerFactory(node: String = "", level: Option[Level] = None, handlers: List[HandlerFactory] = Nil, useParents: Boolean = true) extends () ⇒ Logger with Product with Serializable

    A factory to configure a Logger.

    A factory to configure a Logger. Note that because Loggers are global, executing this factory has side-effects.

    node

    Name of the logging node. The default ("") is the top-level logger.

    level

    Log level for this node. Leaving it None is java's secret signal to use the parent logger's level.

    handlers

    Where to send log messages.

    useParents

    Override to have log messages stop at this node. Otherwise they are passed up to parent nodes.

  13. class LoggerFactoryBuilder extends AnyRef

    Shim for java compatibility.

    Shim for java compatibility. Make a new LoggerFactoryBuilder with LoggerFactory#newBuilder().

  14. trait Logging extends AnyRef

    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.

  15. class LoggingException extends Exception
  16. sealed abstract class Policy extends AnyRef
  17. abstract class ProxyHandler extends Handler

    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.

  18. class QueueingHandler extends ProxyHandler

    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.

  19. class ScribeHandler extends Handler

    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.

  20. class StringHandler extends Handler

    Mostly useful for unit tests: logging goes directly into a string buffer.

  21. class SyslogFormatter extends Formatter

  22. class SyslogHandler extends Handler
  23. trait TestLogging extends BeforeAndAfter

    Specify logging during unit tests via system property, defaulting to FATAL only.

  24. class ThrottledHandler extends ProxyHandler

    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.

Value Members

  1. object BareFormatter extends Formatter

    Formatter that logs only the text of a log message, with no prefix (no date, etc).

  2. object ConsoleHandler
  3. object FileHandler
  4. object HasLogLevel
  5. object Level extends Serializable
  6. object LogRecord extends Serializable
  7. object Logger extends Iterable[Logger]
  8. object LoggerFactory extends Serializable
  9. object Logging
  10. object NullHandler extends Handler
  11. object NullLogger extends Logger
  12. object Policy
  13. object QueueingHandler
  14. object ScribeHandler
  15. object StringHandler
  16. object SyslogFuture
  17. object SyslogHandler
  18. object ThrottledHandler

Inherited from AnyRef

Inherited from Any

Ungrouped