object Log
- Alphabetic
- By Inheritance
- Log
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- type SafeLog[A] = Log[Nothing, A]
Synonym for a non-failing log service – one that does not emit errors
- trait Service[E, A] extends AnyRef
An implementation of conventional logging with timestamp and logging level
An implementation of conventional logging with timestamp and logging level
This interface assumes that the user doesn't want to experience logging failures. Logging is most important under failure conditions, so it is best to log via a fallback mechanism rather than fail altogether. Hence error type
Nothing
. It is the responsibility ofService
implementations to implement fallback behaviour.
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(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def console[A](prefix: Option[String]): IO[Nothing, Log[Nothing, A]]
An unfailing console with conventional JVM-style logger output that falls back to simple console output in the event of any error
- def consoleE[A](prefix: Option[String]): IO[Throwable, Log[Throwable, A]]
A console with conventional JVM-style logger output that can emit
Throwable
errors - final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def log[E, A]: ZIO[Log[E, A], Nothing, Service[E, A]]
Shortcut to retrieving the configured
Log.Service
- def make[E, A]: ZIO[LogMedium[E, Tagged[A]], E, Log[E, A]]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def silent[A]: ZIO[Any, Nothing, Log[Nothing, A]]
Inhibit log output – useful for unit testing
- def stringLog: ZIO[Log[Nothing, String], Nothing, Service[Nothing, String]]
Shortcut to retrieving the configured non-failing string-based
Log.Service
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.