scribe
package scribe
- Alphabetic
- By Inheritance
- scribe
- LoggerSupport
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Package Members
Type Members
- case class ANSI(ansi: String, type: String, default: String) extends Product with Serializable
- implicit class AnyLogging extends AnyRef
- trait JavaScriptConsole extends Object
- Annotations
- @RawJSType() @native()
- class Level extends Ordered[Double]
- trait LogRecord[M] extends AnyRef
- trait LogSupport[L <: LogSupport[L]] extends AnyRef
- trait Loggable[-T] extends AnyRef
- case class Logger(parentId: Option[Long] = Some(Logger.rootId), modifiers: List[LogModifier] = Nil, handlers: List[LogHandler] = Nil, overrideClassName: Option[String] = None, id: Long = Random.nextLong()) extends LogSupport[Logger] with LoggerSupport with Product with Serializable
- trait LoggerSupport extends AnyRef
- trait Logging extends AnyRef
Logging is a mix-in to conveniently add logging support to any class or object.
- class LoggingExecutionContext extends ExecutionContext
- class MDC extends AnyRef
- trait PlatformImplementation extends AnyRef
- case class Position(className: String, methodName: Option[String], line: Option[Int], column: Option[Int], fileName: String) extends Product with Serializable
- final class Priority extends AnyVal with Ordered[Priority]
Abstract Value Members
- abstract def log[M](record: LogRecord[M]): Unit
- Definition Classes
- LoggerSupport
Concrete Value Members
- macro def async[Return](f: => Return): Return
Updates
Throwables
fired within the supplied function to include positional information tying back up the asynchronous chain.Updates
Throwables
fired within the supplied function to include positional information tying back up the asynchronous chain. This should only be necessary if you have no control over the creation ofFuture
s in your code. Ideally, just usescribe.future
instead.Use this as a function wrapper to fix
Throwable
instances. This must be coupled with:import scribe.Execution.global
Or there will be no stack to inject.
- Return
the return type of the wrapped function
- f
the functional that may throw a
Throwable
- macro def debug[M](message: => M, t: Throwable)(implicit arg0: Loggable[M]): Unit
- Definition Classes
- LoggerSupport
- macro def debug[M](message: => M)(implicit arg0: Loggable[M]): Unit
- Definition Classes
- LoggerSupport
- macro def debug(): Unit
- Definition Classes
- LoggerSupport
- var disposables: Set[() => Unit]
- Attributes
- protected
- def dispose(): Unit
- macro def error[M](message: => M, t: Throwable)(implicit arg0: Loggable[M]): Unit
- Definition Classes
- LoggerSupport
- macro def error[M](message: => M)(implicit arg0: Loggable[M]): Unit
- Definition Classes
- LoggerSupport
- macro def error(): Unit
- Definition Classes
- LoggerSupport
- macro def future[Return](f: => Return): Future[Return]
Convenience method to create a
Future
with the ScribeExecutionContext
to properly track tracing up the chain for asynchronous operations.Convenience method to create a
Future
with the ScribeExecutionContext
to properly track tracing up the chain for asynchronous operations. When using this, no other operation should be necessary. However, if you map to other future operations that require anExecutionContext
, make sure to useimport scribe.Execution.global
instead of the defaultglobal
ExecutionContext
or the stack data will be lost.- Return
the return type for the code
- f
the function to run in a new
Future
- macro def info[M](message: => M, t: Throwable)(implicit arg0: Loggable[M]): Unit
- Definition Classes
- LoggerSupport
- macro def info[M](message: => M)(implicit arg0: Loggable[M]): Unit
- Definition Classes
- LoggerSupport
- macro def info(): Unit
- Definition Classes
- LoggerSupport
- implicit def level2Double(level: Level): Double
- lazy val lineSeparator: String
- macro def log[M](level: Level, message: => M, throwable: Option[Throwable])(implicit loggable: Loggable[M]): Unit
- Definition Classes
- LoggerSupport
- macro def trace[M](message: => M, t: Throwable)(implicit arg0: Loggable[M]): Unit
- Definition Classes
- LoggerSupport
- macro def trace[M](message: => M)(implicit arg0: Loggable[M]): Unit
- Definition Classes
- LoggerSupport
- macro def trace(): Unit
- Definition Classes
- LoggerSupport
- macro def warn[M](message: => M, t: Throwable)(implicit arg0: Loggable[M]): Unit
- Definition Classes
- LoggerSupport
- macro def warn[M](message: => M)(implicit arg0: Loggable[M]): Unit
- Definition Classes
- LoggerSupport
- macro def warn(): Unit
- Definition Classes
- LoggerSupport
- object ANSI extends Serializable
- object Execution
- object Level
- object LogRecord
- object Loggable
- object Logger extends Serializable
- object MDC
- object Macros
- Annotations
- @compileTimeOnly("Enable macros to expand")
- object Platform extends PlatformImplementation
- object Position extends Serializable
- object Priority