org.senkbeil.grus

Logger

class Logger extends AnyRef

Represents a simplistic logger.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Logger
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Logger(klass: Class[_], level: Level = Logger.defaultLevel, out: PrintStream = scala.Console.out, err: PrintStream = scala.Console.err)

    klass

    The class using the logger

    level

    The lowest level of logging output by this logger

    out

    The output stream to use for logging

    err

    The error stream to use for logging

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. lazy val AbbreviatedClassName: String

    Represents an abbreviated fully-qualified class name.

    Represents an abbreviated fully-qualified class name.

    Example:
    1. org.senkbeil.grus.Logger => o.s.d.Logger

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  11. val err: PrintStream

    The error stream to use for logging

  12. def error(throwable: Throwable): Unit

    Logs the throwable to standard err.

    Logs the throwable to standard err.

    throwable

    The throwable to log

  13. def error(text: String, throwable: Throwable): Unit

    Logs the throwable to standard err.

    Logs the throwable to standard err.

    text

    The text to log before the throwable

    throwable

    The throwable to log

  14. def error(text: String): Unit

    Logs the text content to standard err.

    Logs the text content to standard err.

    text

    The text to log

  15. def fatal(throwable: Throwable): Unit

    Logs the throwable to standard err.

    Logs the throwable to standard err.

    throwable

    The throwable to log

  16. def fatal(text: String, throwable: Throwable): Unit

    Logs the throwable to standard err.

    Logs the throwable to standard err.

    text

    The text to log before the throwable

    throwable

    The throwable to log

  17. def fatal(text: String): Unit

    Logs the text content to standard err.

    Logs the text content to standard err.

    text

    The text to log

  18. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  21. def info(text: String): Unit

    Logs the text content to standard out.

    Logs the text content to standard out.

    text

    The text to log

  22. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  23. val level: Level

    The lowest level of logging output by this logger

  24. def log(printWriter: PrintWriter, text: String): Unit

    Logs the text content, adding a timestamp and abbreviated class name in front of the content.

    Logs the text content, adding a timestamp and abbreviated class name in front of the content.

    printWriter

    The writer to use when logging

    text

    The text to log

    Attributes
    protected
  25. def log(text: String): Unit

    Logs the text content to standard out.

    Logs the text content to standard out.

    text

    The text to log

  26. def log(level: Level, text: String): Unit

    Logs the text content if the provided level is equal to or higher than the logger's level.

    Logs the text content if the provided level is equal to or higher than the logger's level.

    E.g. Providing a level of WARN when the logger has a level of INFO would log while a providing a level of VERBOSE would not log.

    level

    The level to associate with this log operation

    text

    The text to log

  27. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  28. def newSession(name: String): Session

    Starts a new logger session with the specified name.

    Starts a new logger session with the specified name.

    name

    The name to associate with the logger session

    returns

    The new session instance

  29. final def notify(): Unit

    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  31. val out: PrintStream

    The output stream to use for logging

  32. def pickWriter(level: Level): PrintWriter

    Returns a writer to use when logging based on the given log level.

    Returns a writer to use when logging based on the given log level.

    level

    The log level to use to decide the writer

    returns

    The picked writer instance

    Attributes
    protected
  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  34. def time[T](level: Level, prefix: String = "Took ")(code: ⇒ T): T

    Runs the block of code, logging the time and reporting it before returning the result of the code execution (including thrown errors).

    Runs the block of code, logging the time and reporting it before returning the result of the code execution (including thrown errors).

    T

    The return type of the block of code

    level

    The level to use when logging

    prefix

    The string to prefix before the logged time and unit

    code

    The block of code to execute

    returns

    The result of executing the block of code

  35. def toString(): String

    Definition Classes
    AnyRef → Any
  36. def trace(text: String): Unit

    Logs the text content to standard out.

    Logs the text content to standard out.

    text

    The text to log

  37. def verbose(text: String): Unit

    Logs the text content to standard out.

    Logs the text content to standard out.

    text

    The text to log

  38. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. def warn(text: String): Unit

    Logs the text content to standard err.

    Logs the text content to standard err.

    text

    The text to log

Inherited from AnyRef

Inherited from Any

Ungrouped