Package

com.twitter

logging

Permalink

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

    Permalink

    Log things to the console.

  2. class FileHandler extends Handler

    Permalink

    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

    Permalink

    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

    Permalink

    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

    Permalink
  6. trait HasLogLevel extends AnyRef

    Permalink

    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

    Permalink
  8. class LazyLogRecordUnformatted extends LazyLogRecord

    Permalink

    A lazy LogRecord that needs formatting

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

    Permalink
  10. class LogRecord extends java.util.logging.LogRecord

    Permalink

    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

    Permalink

    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

    Permalink

    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

    Permalink

    Shim for java compatibility.

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

  14. trait Logging extends AnyRef

    Permalink

    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

    Permalink
  16. sealed abstract class Policy extends AnyRef

    Permalink
  17. abstract class ProxyHandler extends Handler

    Permalink

    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

    Permalink

    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 StringHandler extends Handler

    Permalink

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

  20. class SyslogFormatter extends Formatter

    Permalink

  21. class SyslogHandler extends Handler

    Permalink
  22. class ThrottledHandler extends ProxyHandler

    Permalink

    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

    Permalink

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

  2. object ConsoleHandler

    Permalink
  3. object FileHandler

    Permalink
  4. object HasLogLevel

    Permalink
  5. object Level extends Serializable

    Permalink
  6. object LogRecord extends Serializable

    Permalink
  7. object Logger extends Iterable[Logger]

    Permalink
  8. object LoggerFactory extends Serializable

    Permalink
  9. object Logging

    Permalink
  10. object NullHandler extends Handler

    Permalink
  11. object NullLogger extends Logger

    Permalink
  12. object Policy

    Permalink
  13. object QueueingHandler

    Permalink
  14. object StringHandler

    Permalink
  15. object SyslogFuture

    Permalink
  16. object SyslogHandler

    Permalink
  17. object ThrottledHandler

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped