org.specs.log.Log

trait Log

trait Log

 extends Output


Simple definition of a logger using a given Output.

It defines 4 ordered levels of logging: Debug, Info, Warning, Error

Usage:
Log.level = Info
log.debug("message") // will print
log.info("message") // will print
log.warning("message") // will not print
log.error("message") // will not print



Source: Log.scala(15)

Direct Known Subclasses

ConsoleLog,

 Fields

Debug val Debug Int
Error val Error Int
Info val Info Int
Warning val Warning Int
level var level Int

 Methods

!= final def !=(arg0 : Any) Boolean Any
!= final def !=(arg0 : Object) Boolean AnyRef
== final def ==(arg0 : Object) Boolean AnyRef
== final def ==(arg0 : Any) Boolean Any
asInstanceOf final def asInstanceOf[T0] T0 Any
clone protected def clone Object AnyRef
debug def debug(msg : => String)
prints the message if the log level is Debug
Unit
eq final def eq(arg0 : Object) Boolean AnyRef
equals def equals(arg0 : Any) Boolean AnyRef
error def error(msg : => String)
prints the message if the log level is <= Error
Unit
finalize protected def finalize Unit AnyRef
flush abstract def flush
flushes the content if necessary
Unit Output
getClass final def getClass Class[Object] AnyRef
hashCode def hashCode Int AnyRef
info def info(msg : => String)
prints the message if the log level is <= Info
Unit
isInstanceOf final def isInstanceOf[T0] Boolean Any
ne final def ne(arg0 : Object) Boolean AnyRef
notify final def notify Unit AnyRef
notifyAll final def notifyAll Unit AnyRef
printStackTrace def printStackTrace(t : Throwable)
prints stacktraces
Unit Output
printf abstract def printf(format : String, args : Any*)
prints several objects according to a format string (see Console [details]
printf)
Unit Output
println abstract def println(m : Any)
prints an object with a newline
Unit Output
synchronized final def synchronized[T0](arg0 : T0) T0 AnyRef
toString def toString String AnyRef
wait final def wait(arg0 : Long) Unit AnyRef
wait final def wait Unit AnyRef
wait final def wait(arg0 : Long, arg1 : Int) Unit AnyRef
warning def warning(msg : => String)
prints the message if the log level is <= Warning
Unit
Copyright (c) 2007-2009. All Rights Reserved.