Package

kadai

log

Permalink

package log

Visibility
  1. Public
  2. All

Type Members

  1. trait LogMessage[A] extends AnyRef

    Permalink

    LogMessages get fed to loggers, allowing custom control of the message String via the toString.

    LogMessages get fed to loggers, allowing custom control of the message String via the toString.

    Normally, you just supply whatever Show instance for your data you want to control the log output, but custom sub-types may implement structured log formats such as JSON.

  2. trait LogWriter[A] extends AnyRef

    Permalink

    Typeclass for producing structured logs

  3. trait LogWriterInstances extends AnyRef

    Permalink
  4. trait Logger extends AnyRef

    Permalink

    Defines a simple logging facility.

    Defines a simple logging facility.

    To use simply mix in the Logging trait. The standard Show type-class instances can be imported by importing the Logging object:

    For example:

    class MyClass extends Actor with Logging {
    import Logging._
    
    info("MyClass is instantiated!")
    …
    }

    Note you will need an instance of the LogWriter typeclass in implicit scope for any type you want to log. The most convenient way to construct a LogWriter is deriving it from a Show instance, but a LogWriter can be derived for more structured data, allowing for structured logging formats such as JSON.

    Most commonly you may want Show[String], for which you can import scalaz.std.string._

  5. trait Logging extends Logger

    Permalink
  6. trait LoggingInstances extends AnyRef

    Permalink

Value Members

  1. object LogWriter extends LogWriterInstances

    Permalink
  2. object Logging extends LoggingInstances

    Permalink
  3. package log4j

    Permalink

Ungrouped