almond.logger

package almond.logger

Ad-hoc logging library.

Its motivations, compared to logback and all, are two-fold:

  • easier to adjust its configuration programmatically (e.g. from command-line options), without tangling with Java properties, etc.
  • easier to have it log to a given java.io.PrintStream: when user code is running in the Scala kernel, System.out and all are set to ad hoc java.io.PrintStream instances, that capture the user code output. If the logging framework also sends its logs there, these appear in the notebook, which is not what we want (we'd like the logs to still go in the console). With this logging library, we can initially fix the java.io.PrintStream, so that logs are indeed always sent to the console.

Attributes

Members list

Packages

Type members

Classlikes

sealed abstract class Level(val index: Int, val name: String, val coloredName: String) extends Product, Serializable, Ordered[Level]

Attributes

Companion
object
Supertypes
trait Ordered[Level]
trait Comparable[Level]
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
object Debug.type
object Error.type
object Info.type
object None.type
object Warning.type
object Level

Attributes

Companion
class
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Level.type
final case class Logger(underlying: ActualLogger)

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Show all
Self type
Logger.type

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object LoggerContext

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type