Object/Trait

org.scalawag.timber.backend.receiver

Receiver

Related Docs: trait Receiver | package receiver

Permalink

object Receiver

Provides methods for telling timber how to manage your Receivers.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Receiver
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def closeOnShutdown(receivers: Receiver*): Unit

    Permalink

    Registers receivers to be closed at system shutdown.

    Registers receivers to be closed at system shutdown. This uses the Java runtime's addShutdownHook which only executes during certain system shutdown scenarios.

    Calling this method multiple times with the same receiver has no effect beyond calling it once.

    receivers

    a set of receivers to attempt to close on normal system shutdown

  7. def closeOnSignal(signal: String, receivers: Receiver*): Unit

    Permalink

    Registers receivers to be closed when the JVM receives a certain signal.

    Registers receivers to be closed when the JVM receives a certain signal. This is intended for integration with tools like logrotate that are capable of sending signals during rotation to tell the logging process to close and reopen its log files to prevent the process from hanging on to an open file handle and therefore continuing to log to a log file that has been rotated out.

    Calling this method multiple times with the same receiver and signal combination has no effect beyond calling it once with that combination. All receivers passed to calls for the same signal are accumulated and closed when that signal is received. There is no way to retract the registration.

    signal

    the signal to listen for (I recommend "HUP")

    receivers

    the receivers to close when the signal is received

  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  18. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped