PrintingMode

tinyscalautils.text.PrintingMode
trait PrintingMode

Printing mode. Decides which of thread/time is shown and how.

For instance,

printf("(%d,%d)%n", x, y)

might produce output of the form: T1 at 09:15:49.525: (2,3) where T1 is the name of the thread that called printf.

Actual format is controlled by a printing mode. For instance:

import tinyscalautils.printing.{ println, threadTimeMode }

println("message")

might produce main at 17:29:50.623: message, while:

 import tinyscalautils.printing.{ println, threadMode }

println("message") 

All printing modes in this package are stateless and thus safe to be shared among threads.

Attributes

Since

1.0

Source
PrintingMode.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object silentMode
object standardMode
object threadMode
object timeDemoMode
object timeMode
Show all

Members list

Value members

Abstract methods

Concrete methods

final def printf(format: String, args: Any*): Unit

Formatted printing with a format.

Formatted printing with a format.

Attributes

Source
PrintingMode.scala
final def println(arg: Any): Unit

Formatted printing with a newline.

Formatted printing with a newline.

Attributes

Source
PrintingMode.scala