object Receiver
Provides methods for telling timber how to manage your Receivers.
- Alphabetic
- By Inheritance
- Receiver
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
closeOnShutdown(receivers: Receiver*): Unit
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
-
def
closeOnSignal(signal: String, receivers: Receiver*): Unit
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
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()